Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

wmemchr - First occurrence of wide character in wide character string

&pagelevel(4)&pagelevel

Definition

#include <wchar.h>

wchar_t *wmemchr( const wchar_t *ws, wchar_t *wc, size_t n);

The wmemchr function searches for the the first occurrence of the wide character wc in the
first n bytes of the wide character string ws and returns a pointer to the found position in ws.

Return val.

Pointer to the position of wc in ws

if successful,

NULL pointer

otherwise.

Notes

This version of the C runtime system only supports one-byte characters as wide character
codes.

The following two prototypes of the wmemchr function are applicable to C++:
const wchar_t* wmemchr(const wchar_t *ws, wchar_t *wc, size_t n);

wchar_t* wmemchr( wchar_t *ws, wchar_t *wc, size_t n);

See also

memchr, wcsstr, wmemcmp, wmemcpy