Debian Codegraph @

upstream/debian-unstable/man3/wcschr.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 wcschr 3 2026-02-08 "Linux man-pages 6.18"
8 .SH NAME
9 wcschr \- search a wide character in a wide-character string
10 .SH LIBRARY
11 Standard C library
12 .RI ( libc ,\~ \-lc )
13 .SH SYNOPSIS
14 .nf
15 .B #include <wchar.h>
16 .P
17 .BI "wchar_t *wcschr(const wchar_t *" wcs ", wchar_t " wc );
18 .fi
19 .SH DESCRIPTION
20 The
21 .BR wcschr ()
22 function is the wide-character equivalent
23 of the
24 .BR strchr (3)
25 function.
26 It searches the first occurrence of
27 .I wc
28 in the wide-character
29 string pointed to by
30 .IR wcs .
31 .SH RETURN VALUE
32 The
33 .BR wcschr ()
34 function returns a pointer to the first occurrence of
35 .I wc
36 in the wide-character string pointed to by
37 .IR wcs ,
38 or NULL if
39 .I wc
40 does not occur in the string.
41 .SH ATTRIBUTES
42 For an explanation of the terms used in this section, see
43 .BR attributes (7).
44 .TS
45 allbox;
46 lbx lb lb
47 l l l.
48 Interface Attribute Value
49 T{
50 .na
51 .nh
52 .BR wcschr ()
53 T} Thread safety MT-Safe
54 .TE
55 .SH STANDARDS
56 C11, POSIX.1-2008.
57 .SH HISTORY
58 POSIX.1-2001, C99.
59 .SH SEE ALSO
60 .BR strchr (3),
61 .BR wcspbrk (3),
62 .BR wcsrchr (3),
63 .BR wcsstr (3),
64 .BR wmemchr (3)