strspn - get length of a substring
#include <string.h> size_t strspn(const char *s1, const char *s2);
The strspn() function computes the length of the maximum initial segment of the string pointed to by s1 which consists entirely of bytes from the string pointed to by s2.
The strspn() function returns the length of s1; no return value is reserved to indicate an error.
No errors are defined.
None.
None.
None.
strcspn(), <string.h>.
Derived from Issue 1 of the SVID.