const wchar_t* wmemchr (const wchar_t* ptr, wchar_t wc, size_t num); wchar_t* wmemchr ( wchar_t* ptr, wchar_t wc, size_t num);
wchar_t * wmemchr ( const wchar_t *, wchar_t, size_t );
1234567891011121314
/* wmemchr example */ #include <wchar.h> int main () { wchar_t * pwc; wchar_t wcs[] = L"Example wide string"; pwc = wmemchr (wcs, L'p', wcslen(wcs)); if (pwc!=NULL) wprintf (L"'p' found at position %d.\n", pwc-wcs+1); else wprintf (L"'p' not found.\n"); return 0; }
'p' found at position 5.