...
The first time strtok()
is called, the string is parsed into tokens , and character delimiter. The strtok()
function parses the string up to the first instance of the delimiter character, replaces the character in place with a null byte ('\0'
), and returns the address of the first character in the token. Subsequent calls to strtok()
begin parsing immediately after the most recently-placed null character.
...