Why do we use NULL in strtok()?

Why do we use NULL in strok() function?

while (h != NULL)
{
    h = strtok(NULL, delim);  
    if (hold != NULL) 
      printf("%s", hold);    
}

What does this program do when *h is pointing to a string?

Leave a Comment