See my reply in post #2 and if that's that then the next element of the header node points to NULL ie
Code:if(curr[i]->string == NULL) { curr[i] = (list*)malloc(sizeof(list)); strcpy(curr[i]->string, string); head = curr[i]; head->next = NULL; }
See my reply in post #2 and if that's that then the next element of the header node points to NULL ie
Code:if(curr[i]->string == NULL) { curr[i] = (list*)malloc(sizeof(list)); strcpy(curr[i]->string, string); head = curr[i]; head->next = NULL; }