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

wcsspn computes the length of the maximum initial segment of the wide string pointed to by s1 which consists entirely of wide characters from the wide string pointed to by s2.

wcsspn returns the length of the segment.