]>
Commit | Line | Data |
---|---|---|
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 |
14 | wmemchr \- search a wide character in a wide-character array | |
35b8ccdb AC |
15 | .SH LIBRARY |
16 | Standard 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 |
25 | The |
26 | .BR wmemchr () | |
27 | function is the wide-character equivalent of the | |
28 | .BR memchr (3) | |
29 | function. | |
35cfd378 | 30 | It searches the |
1ae6b2c7 | 31 | .I n |
35cfd378 MK |
32 | wide characters starting at |
33 | .I s | |
34 | for | |
35 | the first occurrence of the wide character | |
36 | .IR c . | |
47297adb | 37 | .SH RETURN VALUE |
60a90ecd MK |
38 | The |
39 | .BR wmemchr () | |
35cfd378 MK |
40 | function returns a pointer to the first occurrence of |
41 | .I c | |
42 | among the | |
1ae6b2c7 | 43 | .I n |
35cfd378 MK |
44 | wide characters starting at |
45 | .IR s , | |
46 | or NULL if | |
47 | .I c | |
48 | does | |
fea681da | 49 | not occur among these. |
7f1c8d16 | 50 | .SH ATTRIBUTES |
8e7f66f6 PH |
51 | For an explanation of the terms used in this section, see |
52 | .BR attributes (7). | |
53 | .TS | |
54 | allbox; | |
c466875e | 55 | lbx lb lb |
8e7f66f6 PH |
56 | l l l. |
57 | Interface Attribute Value | |
58 | T{ | |
9e54434e BR |
59 | .na |
60 | .nh | |
7f1c8d16 | 61 | .BR wmemchr () |
8e7f66f6 PH |
62 | T} Thread safety MT-Safe |
63 | .TE | |
3113c7f3 | 64 | .SH STANDARDS |
4131356c AC |
65 | C11, POSIX.1-2008. |
66 | .SH HISTORY | |
67 | POSIX.1-2001, C99. | |
47297adb | 68 | .SH SEE ALSO |
fea681da MK |
69 | .BR memchr (3), |
70 | .BR wcschr (3) |