Answer from cs61c-ee (Michael Shen 15963205) for Question 2
struct stringNode *tempPtr;
tempPtr = head;

head = (struct stringNode *) malloc(sizeof(struct stringNode));

head->string = *name;
head->node = tempPtr;
