]>
Commit | Line | Data |
---|---|---|
fea681da MK |
1 | .\" Copyright (c) Bruno Haible <haible@clisp.cons.org> |
2 | .\" | |
3 | .\" This is free documentation; you can redistribute it and/or | |
4 | .\" modify it under the terms of the GNU General Public License as | |
5 | .\" published by the Free Software Foundation; either version 2 of | |
6 | .\" the License, or (at your option) any later version. | |
7 | .\" | |
8 | .\" References consulted: | |
9 | .\" GNU glibc-2 source code and manual | |
10 | .\" Dinkumware C library reference http://www.dinkumware.com/ | |
008f1ecc | 11 | .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html |
fea681da MK |
12 | .\" ISO/IEC 9899:1999 |
13 | .\" | |
14 | .TH WMEMCHR 3 1999-07-25 "GNU" "Linux Programmer's Manual" | |
15 | .SH NAME | |
16 | wmemchr \- search a wide character in a wide-character array | |
17 | .SH SYNOPSIS | |
18 | .nf | |
19 | .B #include <wchar.h> | |
20 | .sp | |
21 | .BI "wchar_t *wmemchr(const wchar_t *" s ", wchar_t " c ", size_t " n ); | |
22 | .fi | |
23 | .SH DESCRIPTION | |
60a90ecd MK |
24 | The |
25 | .BR wmemchr () | |
26 | function is the wide-character equivalent of the | |
27 | .BR memchr (3) | |
28 | function. | |
35478399 | 29 | It searches the \fIn\fP wide characters starting at \fIs\fP for |
fea681da | 30 | the first occurrence of the wide character \fIc\fP. |
47297adb | 31 | .SH RETURN VALUE |
60a90ecd MK |
32 | The |
33 | .BR wmemchr () | |
34 | function returns a pointer to the first occurrence of \fIc\fP | |
fea681da MK |
35 | among the \fIn\fP wide characters starting at \fIs\fP, or NULL if \fIc\fP does |
36 | not occur among these. | |
47297adb | 37 | .SH CONFORMING TO |
68e1685c | 38 | C99. |
47297adb | 39 | .SH SEE ALSO |
fea681da MK |
40 | .BR memchr (3), |
41 | .BR wcschr (3) |