size_t wcscspn (const wchar_t* wcs1, const wchar_t* wcs2);
123456789101112
/* wcscspn example */ #include <wchar.h> int main () { wchar_t wcs[] = L"fcba73"; wchar_t keys[] = L"1234567890"; int i; i = wcscspn (wcs,keys); wprintf (L"The first number in wcs is at position %d.\n",i+1); return 0; }
The first number in wcs is at position 5