MicrOS
strtok.c File Reference
#include "../string.h"

Functions

char * strtok (char *str, const char *delimiters)
 Split string into tokens. More...
 

Function Documentation

◆ strtok()

char* strtok ( char *  str,
const char *  delimiters 
)

Split string into tokens.

A sequence of calls to this function split str into tokens, which are sequences of contiguous characters separated by any of the characters that are part of delimiters.

Parameters
strC string to truncate.
delimetersC string containing the delimiter characters.
Returns
If a token is found, a pointer to the beginning of the token. Otherwise, a null pointer.