wmemchr - search a wide character in a wide-character array
Contents
Attributes
For an explanation of the terms used in this section, see attributes(7).
┌─────────────────────────────────────────────────────────────────────────────┬───────────────┬─────────┐
│ Interface │ Attribute │ Value │
├─────────────────────────────────────────────────────────────────────────────┼───────────────┼─────────┤
│ wmemchr() │ Thread safety │ MT-Safe │
└─────────────────────────────────────────────────────────────────────────────┴───────────────┴─────────┘
Description
The wmemchr() function is the wide-character equivalent of the memchr(3) function. It searches the n
wide characters starting at s for the first occurrence of the wide character c.
History
POSIX.1-2001, C99.
Library
Standard C library (libc, -lc)
Name
wmemchr - search a wide character in a wide-character array
Return Value
The wmemchr() function returns a pointer to the first occurrence of c among the n wide characters
starting at s, or NULL if c does not occur among these.
See Also
memchr(3), wcschr(3) Linux man-pages 6.9.1 2024-05-02 wmemchr(3)
Standards
C11, POSIX.1-2008.
Synopsis
#include<wchar.h>wchar_t*wmemchr(constwchar_ts[.n],wchar_tc,size_tn);