OpenBSD manual page server

Manual Page Search Parameters

WMEMCHR(3) Library Functions Manual WMEMCHR(3)

wmemchrlocate wide character in wide string

#include <wchar.h>

wchar_t *
wmemchr(const wchar_t *b, wchar_t c, size_t len);

The wmemchr() function locates the first occurrence of c in wide string b.

The wmemchr() function returns a pointer to the wide character located, or NULL if no such wide character exists within len wide characters.

memchr(3), wcschr(3), wcscspn(3), wcspbrk(3), wcsrchr(3), wcsspn(3), wcsstr(3), wcstok(3)

The wmemchr() function conforms to ISO/IEC 9899:1999 (“ISO C99”) and was first introduced in ISO/IEC 9899/AMD1:1995 (“ISO C90, Amendment 1”).

The wmemchr() function was ported from NetBSD and first appeared in OpenBSD 3.8.

June 5, 2013 OpenBSD-current