1 2 3 4 5 6 7 8 9 | Synopsis char *strtok(char * restrict s1, const char * restrict s2); The first call in the sequence searches the string pointed to by s1 for the first character that is not contained in the current separator string pointed to by s2. If no such character is found, then there are no tokens in the string pointed to by s1and the strtok function returns a null pointer. If such a character is found, it is the start of the first token. |
Direct link: https://paste.plurk.com/show/357714