Answer from cs61c-ck (Allen Lee 16583554) for Question 2
struct listnode *newnode;
newnode = (struct listnode *) malloc(sizeof(struct listnode));
newnode->word = strdup(name); /* from the book */
newnode->next = head;
head = newnode;
