strcspn
Syntax
Find Number of Unmatching Characters
#include
<string.h>
size-t strcspn(sl, s2}
char
*sl, *s2;
Defined in
strcspn. c in rts. src
Description
The strcspn function returns the length of the initial segment of sl which
is entirely made up of characters that are not in s2. If the first character in
sl is in s2, the function returns O.
6-70