Next: str_dtoksplit, Previous: str_trunc, Up: Strings
count the number of tokens in a string.
#include <suplib/str.h>size_t str_dtokcnt( const char *string, char *delim );
const char *string
- string to parse
char *delim
- the delimiters to use
str_dtokcnt
parses a string in the same manner as
str_dtoksplit
and returns the number of tokens. It does not
alter the string.
It returns the number of tokens in the string.
Diab Jerius