1wmemchr(3)                 Library Functions Manual                 wmemchr(3)
2
3
4

NAME

6       wmemchr - search a wide character in a wide-character array
7

LIBRARY

9       Standard C library (libc, -lc)
10

SYNOPSIS

12       #include <wchar.h>
13
14       wchar_t *wmemchr(const wchar_t s[.n], wchar_t c, size_t n);
15

DESCRIPTION

17       The  wmemchr()  function  is  the wide-character equivalent of the mem‐
18       chr(3) function.  It searches the n wide characters starting at  s  for
19       the first occurrence of the wide character c.
20

RETURN VALUE

22       The  wmemchr()  function returns a pointer to the first occurrence of c
23       among the n wide characters starting at s, or NULL if c does not  occur
24       among these.
25

ATTRIBUTES

27       For  an  explanation  of  the  terms  used  in  this  section,  see at‐
28       tributes(7).
29
30       ┌────────────────────────────────────────────┬───────────────┬─────────┐
31Interface                                   Attribute     Value   
32       ├────────────────────────────────────────────┼───────────────┼─────────┤
33wmemchr()                                   │ Thread safety │ MT-Safe │
34       └────────────────────────────────────────────┴───────────────┴─────────┘
35

STANDARDS

37       C11, POSIX.1-2008.
38

HISTORY

40       POSIX.1-2001, C99.
41

SEE ALSO

43       memchr(3), wcschr(3)
44
45
46
47Linux man-pages 6.04              2023-03-30                        wmemchr(3)
Impressum