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