 |
strtok |
Function (ROM Call 0x27A) |
Scans s1 for the first token not contained in s2.
strtok considers the string s1 to consist of a sequence of zero or more text
tokens, separated by spans of one or more characters from the separator string
s2. The first call to strtok returns a pointer to the first character of the
first token in s1 and writes a null character into s1 immediately following
the returned token. Subsequent calls with NULL for the first argument will
work through the string s1 in this way, until no tokens remain. The separator
string, s2, can be different from call to call. strtok returns a pointer to
the token found in s1. A null pointer is returned when there are no more
tokens.