X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Fpalllist.c;h=e9367545b9d1bd3caf60a84a87babb92444a093a;hb=f888d29c0ceaa48568b15f3269df70e6498c9dbc;hp=daab2b3840d15d93baacd18c1b533269344284de;hpb=48a59b737b260f4ae17210137c19486d1cc42eb3;p=16.git diff --git a/src/palllist.c b/src/palllist.c index daab2b38..e9367545 100755 --- a/src/palllist.c +++ b/src/palllist.c @@ -1,5 +1,5 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2017 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover + * Copyright (C) 2012-2018 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover * * This file is part of Project 16. * @@ -163,21 +163,20 @@ void main() /* Let us create a sorted linked list to test the functions Created linked list will be 11->11->11->13->13->20 */ - push(&head, 20); - push(&head, 13); - push(&head, 13); - push(&head, 11); - push(&head, 11); - push(&head, 11); - + pushll(&head, 20); + pushll(&head, 13); + pushll(&head, 13); + pushll(&head, 11); + pushll(&head, 11); + pushll(&head, 11); + printf("\n Linked list before duplicate removal "); - printList(head); - + printList(head); + /* Remove duplicates from linked list */ - removeDuplicates(head); - - printf("\n Linked list after duplicate removal "); - printList(head); - + removeDuplicates(head); + + printf("\n Linked list after duplicate removal "); + printList(head); } #endif