struct ListNode
{
struct ListNode *next; //next node in list
struct ListNode *previous; //previous node in list
char *data; //a pointer to allocated space containing a word
};
struct List
{
struct ListNode *head; //start of list
struct ListNode *tail; //end of list
};
void AddWord(struct List *l, char *w);
void PrintList(struct List *l);
void DeleteList(struct List *l);