Quote Originally Posted by FortinsM3 View Post
Ahh yes, Ok i changed the second if to just an else. The output changed a little but is still incorrect. See anything else?
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;
}