Checks a specified string from the beginning and counts the number of consecutive characters at the beginning that are included in another string specified.
size_t strspn (const char *s1, const char *s2);
s1 Pointer to the string to be checked
s2 Pointer to the string used to check s1
Number of characters at the beginning of the s1 string that are included in the s2 string
The strspn function checks from the beginning of the string specified by s1, counts the number of consecutive characters that are included in another string specified by s2, and returns that length.