const wchar_t* wcspbrk (const wchar_t* wcs1, const wchar_t* wcs2); wchar_t* wcspbrk ( wchar_t* wcs1, const wchar_t* wcs2);
wchar_t * wcspbrk ( const wchar_t *, const wchar_t * );
123456789101112131415161718
/* wcspbrk example */ #include <wchar.h> int main () { wchar_t wcs[] = L"This is a sample wide string"; wchar_t key[] = L"aeiou"; wchar_t * pwc; wprintf (L"Vowels in '%ls': ",wcs); pwc = wcspbrk (wcs, key); while (pwc != NULL) { wprintf (L"%c " , *pwc); pwc = wcspbrk (pwc+1,key); } wprintf (L"\n"); return 0; }
Vowels in 'This is a sample string': i i a a e i e i