Locate the first occurrence of a wide character in a buffer
#include <wchar.h> wchar_t * wmemchr( const wchar_t * ws, wchar_t wc, size_t n );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The wmemchr() function locates the first occurrence of wc in the first n wide characters of the buffer pointed to by ws.
The wmemchr() function is locale-independent and treats all wchar_t values identically, even if they're null or invalid characters.
A pointer to the located character, or NULL if wc couldn't be found.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | Yes |
Signal handler | Yes |
Thread | Yes |
memccpy(), memcmp(), memcpy(), memicmp(), memmove(), memset() wcschr(), wcsrchr(), wmemcmp(), wmemcpy(), wmemmove(), wmemset()