The strspn function

Name

strspn -- 

Synopsis

#include <string.h>

size_t strspn (const char *s1, const char *s2);

Description

The strspn function computes the length of the maximum initial segment of the string pointed to by s1 which consists entirely of characters from the string pointed to by s2.

Returns

The strspn function returns the length of the segment.

See Also

The strcspn function

Implementation Notes

None