strtok it is c library string function syntax include char strtok char str const char str description the strtok function returns a pointer to the next token in str where str contains the delimiters that determine the token strtok returns null if no token is found in order to convert a string to tokens the first call to strtok should have str point to the string to be tokenized all calls after this should have str be null