Table of Contents
This interface is obsoleted by strsep(3)
. The function is used to isolate
sequential tokens in a null-terminated string, These tokens are separated
in the string by at least one of the characters in The first time that
is called, should be specified; subsequent calls, wishing to obtain further
tokens from the same string, should pass a null pointer instead. The separator
string, must be supplied each time, and may change between calls. The
function returns a pointer to the beginning of each subsequent token in
the string, after replacing the separator character itself with a character.
When no more tokens remain, a null pointer is returned.
The function conforms to
There is no way to get tokens
from multiple strings simultaneously. The System V if handed a string
containing only delimiter characters, will not alter the next starting
point, so that a call to with a different (or empty) delimiter string
may return a value. Since this implementation always alters the next starting
point, such a sequence of calls would always return
Table of Contents