Name
strcspn —
Calculate the length of the initial substring of s
which does not contain letters in reject
Synopsis
size_t strcspn ( | const char * s, |
| const char * reject) ; |
Arguments
const char * s
The string to be searched
const char * reject
The string to avoid