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 );
- The buffer that you want to search.
- The character that you're looking for.
- The number of wide characters to search in the buffer.
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.
Last modified: 2013-09-30