Find the first substring length.
size_t strspn (char * string, char * charset);
Required Header |
<string.h> |
Return Value
The length of the substring which consists entirely of charset is returned.
Parameters
string
A string
charset
A set of characters allowed in the substring
Remarks
The return value can be used as in index to the first character not in charset.