The
strcspn ();
function
spans the initial part of the null-terminated string
Fa s
as long as the characters from
Fa s
do not occur in string
Fa charset
(it
spans the
complement
of
Fa charset ) .
In other words, it computes the string array index in
Fa s
of the first character of
Fa s
which is also in
Fa charset ,
else the index of the first null character.
RETURN VALUES
The
strcspn ();
function
returns the number of characters spanned.