]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man/man3/wmemchr.3
man/, share/mk/: Move man*/ to man/
[thirdparty/man-pages.git] / man / man3 / wmemchr.3
CommitLineData
a1eaacb1 1'\" t
fea681da
MK
2.\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
3.\"
e4a74ca8 4.\" SPDX-License-Identifier: GPL-2.0-or-later
fea681da
MK
5.\"
6.\" References consulted:
7.\" GNU glibc-2 source code and manual
8.\" Dinkumware C library reference http://www.dinkumware.com/
008f1ecc 9.\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
fea681da
MK
10.\" ISO/IEC 9899:1999
11.\"
4c1c5274 12.TH wmemchr 3 (date) "Linux man-pages (unreleased)"
fea681da
MK
13.SH NAME
14wmemchr \- search a wide character in a wide-character array
35b8ccdb
AC
15.SH LIBRARY
16Standard C library
8fc3b2cf 17.RI ( libc ", " \-lc )
fea681da
MK
18.SH SYNOPSIS
19.nf
20.B #include <wchar.h>
c6d039a3 21.P
1eed67e7 22.BI "wchar_t *wmemchr(const wchar_t " s [. n "], wchar_t " c ", size_t " n );
fea681da
MK
23.fi
24.SH DESCRIPTION
60a90ecd
MK
25The
26.BR wmemchr ()
27function is the wide-character equivalent of the
28.BR memchr (3)
29function.
35cfd378 30It searches the
1ae6b2c7 31.I n
35cfd378
MK
32wide characters starting at
33.I s
34for
35the first occurrence of the wide character
36.IR c .
47297adb 37.SH RETURN VALUE
60a90ecd
MK
38The
39.BR wmemchr ()
35cfd378
MK
40function returns a pointer to the first occurrence of
41.I c
42among the
1ae6b2c7 43.I n
35cfd378
MK
44wide characters starting at
45.IR s ,
46or NULL if
47.I c
48does
fea681da 49not occur among these.
7f1c8d16 50.SH ATTRIBUTES
8e7f66f6
PH
51For an explanation of the terms used in this section, see
52.BR attributes (7).
53.TS
54allbox;
c466875e 55lbx lb lb
8e7f66f6
PH
56l l l.
57Interface Attribute Value
58T{
9e54434e
BR
59.na
60.nh
7f1c8d16 61.BR wmemchr ()
8e7f66f6
PH
62T} Thread safety MT-Safe
63.TE
3113c7f3 64.SH STANDARDS
4131356c
AC
65C11, POSIX.1-2008.
66.SH HISTORY
67POSIX.1-2001, C99.
47297adb 68.SH SEE ALSO
fea681da
MK
69.BR memchr (3),
70.BR wcschr (3)