Debian Codegraph @

upstream/debian-unstable/man3/wmemchr.3

raw
1 '\" t
2 .\" Copyright, Bruno Haible <[email protected]>
3 .\" Copyright, the authors of the Linux man-pages project
4 .\"
5 .\" SPDX-License-Identifier: GPL-2.0-or-later
6 .\"
7 .TH wmemchr 3 2026-02-08 "Linux man-pages 6.18"
8 .SH NAME
9 wmemchr \- search a wide character in a wide-character array
10 .SH LIBRARY
11 Standard C library
12 .RI ( libc ,\~ \-lc )
13 .SH SYNOPSIS
14 .nf
15 .B #include <wchar.h>
16 .P
17 .BR "wchar_t *wmemchr(" "size_t n;"
18 .BI " const wchar_t " s [ n "], wchar_t " c ", size_t " n );
19 .fi
20 .SH DESCRIPTION
21 The
22 .BR wmemchr ()
23 function is the wide-character equivalent of the
24 .BR memchr (3)
25 function.
26 It searches the
27 .I n
28 wide characters starting at
29 .I s
30 for
31 the first occurrence of the wide character
32 .IR c .
33 .SH RETURN VALUE
34 The
35 .BR wmemchr ()
36 function returns a pointer to the first occurrence of
37 .I c
38 among the
39 .I n
40 wide characters starting at
41 .IR s ,
42 or NULL if
43 .I c
44 does
45 not occur among these.
46 .SH ATTRIBUTES
47 For an explanation of the terms used in this section, see
48 .BR attributes (7).
49 .TS
50 allbox;
51 lbx lb lb
52 l l l.
53 Interface Attribute Value
54 T{
55 .na
56 .nh
57 .BR wmemchr ()
58 T} Thread safety MT-Safe
59 .TE
60 .SH STANDARDS
61 C11, POSIX.1-2008.
62 .SH HISTORY
63 POSIX.1-2001, C99.
64 .SH SEE ALSO
65 .BR memchr (3),
66 .BR wcschr (3)