2.14.15 strcspn

Declaration:

size_t strcspn(const char *str1, const char *str2);

Finds the first sequence of characters in the string str1 that does not contain any character specified in str2.

Returns the length of this first sequence of characters found that do not match with str2.