4.2.39 strtok

string strtok(const char *str, const char *delim)

The strtok function parses a string into a sequence of tokens by using delim as the delimiting string . When you initially call strtok, specify the string to be parsed in str. In each subsequent call to obtain the next token, specify str as NULL. You can specify a different delimiter for each call. The internal pointer that strtok uses to traverse str is only valid within multiple enablings of the same probe, meaning it behaves like an implicit clause-local variable. The strtok function returns NULL if there are no more tokens.