#define MAXLINE 80 #include "list.h" int main () { char str[MAXLINE+1]; struct list *strings = new_list (); while (fgets (str, MAXLINE+1, stdin) != NULL) list_append (strings, str); list_print (strings); return 0; }