struct node *createList(void) { struct node *ptr, *tmp; int classList, i, head, n; head = (struct node *)malloc(sizeof(struct node)); if(head == NULL) { printf("Unable to locate list."); exit(0);