Programming |  C Programming |  strtok

Sequentially truncate string if delimiter is found.

If string is not NULL, the function scans string for the first occurrence of any character included in delimiters. If it is found, the function overwrites the delimiter in string by a null-character and returns a pointer to the token, i.e. the part of the scanned string previous to the delimiter. After a first call to strtok, the function may be called with NULL as string parameter, and it will follow by where the last call to strtok found a delimiter. delimiters may vary from a call to another.

Parameters

string

separator

Return Value

Defined in string.h

.

From http://www.cplusplus.com/ref/