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

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

wcscspn returns the length of the segment.