Everything

wcsspn


Checks a specified string from the beginning and counts the number of consecutive characters at the beginning that are included in another string specified.

[Format]

#include <wchar.h>

size_t wcsspn(const wchar_t *s1, const wchar_t *s2);

[Parameters]

s1 Pointer to the string to be checked

s2 Pointer to the string used to check s1

[Return values]

Number of characters at the beginning of the s1 string that are included in the s2 string

[Remarks]

The wcsspn function is the wide-character version of the strspn function.