Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #include <stdio.h>
  2. #include "DLinkedList.h"
  3.  
  4. int main (int argc, const char * argv[])
  5. {
  6.     struct List list = {NULL, NULL};
  7.  
  8.     // insert code here...
  9.     printf("Going to add some words...\n");
  10.    
  11.     AddWord(&list, "Hello");
  12.     AddWord(&list, "World");
  13.     AddWord(&list, "Hopefully");
  14.    
  15.     printf("Printing the words\n");
  16.     PrintList(&list);
  17.    
  18.     printf("Freeing List\n");
  19.     DeleteList(&list);
  20.    
  21.     printf("Done\n");
  22.    
  23.     return 0;
  24. }