const wchar_t* wcsrchr (const wchar_t* ws, wchar_t wc); wchar_t* wcsrchr ( wchar_t* ws, wchar_t wc);
wchar_t * wcsrchr ( const wchar_t *, wchar_t );
1234567891011
/* wcsrchr example */ #include <wchar.h> int main () { wchar_t wcs[] = L"This is a sample wide string"; wchar_t * pwc; pwc = wcsrchr (wcs,L's'); wprintf (L"Last occurence of L's' found at %d \n",pwc-wcs+1); return 0; }
Last occurrence of L's' found at 23