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 wcsspn(const wchar_t *s1, const wchar_t *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 wcsspn function is the wide-character version of the strspn function.