size_t wcsspn (const wchar_t* wcs1, const wchar_t* wcs2);
12345678910111213
/* wcsspn example */ #include <wchar.h> int main () { int i; wchar_t wcsText[] = L"129th"; wchar_t wcsSet[] = L"1234567890"; i = wcsspn (wcsText,wcsSet); wprintf (L"The initial number has %d digits.\n",i); return 0; }
The initial number has 3 digits.