Find the first wide character in a string that's in a given character set
#include <wchar.h> wchar_t * wcspbrk( const wchar_t * ws1, const wchar_t * ws2 );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The wcspbrk() function locates the first occurrence in the string pointed to by ws1 of any wide character from the string pointed to by ws2.
A pointer to the located character, or NULL if no character from ws2 occurs in ws1.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | Yes |
Signal handler | Yes |
Thread | Yes |
memchr(), strchr(), strcspn(), strpbrk(), strrchr(), strspn(), strstr(), strtok(), strtok_r(), wcschr(), wcscspn(), wcsrchr(), wcsspn(), wcsstr(), wcstok()