strcspn
Syntax
- int strcspn(const char* s, const char* reject)
Arguments
- s
- The string to scan.
- reject
- A string containing the characters to scan for.
Return
- The length of the initial matching segment.
Description
- Returns the length from the start of string s which does not contain any of the characters specified in string reject.
Also see
- strpbrk, strspn, strstr