#include #include #include "fields.h" #include "dllist.h" main() { IS is; Dllist *l; Dllist_Node *tmp; is = new_inputstruct(NULL); l = new_dllist(); while (get_line(is) >= 0) { dll_append(l, strdup(is->text1)); } for (tmp = dll_last(l); tmp != dll_sentinel(l); tmp = dll_prev(tmp)) { printf("%s", (char *)dll_val(tmp)); } }