1WCSCHR(3) Linux Programmer's Manual WCSCHR(3)
2
3
4
6 wcschr - search a wide character in a wide-character string
7
9 #include <wchar.h>
10
11 wchar_t *wcschr(const wchar_t *wcs, wchar_t wc);
12
14 The wcschr() function is the wide-character equivalent of the strchr(3)
15 function. It searches the first occurrence of wc in the wide-character
16 string pointed to by wcs.
17
19 The wcschr() function returns a pointer to the first occurrence of wc
20 in the wide-character string pointed to by wcs, or NULL if wc does not
21 occur in the string.
22
24 For an explanation of the terms used in this section, see at‐
25 tributes(7).
26
27 ┌────────────────────────────────────────────┬───────────────┬─────────┐
28 │Interface │ Attribute │ Value │
29 ├────────────────────────────────────────────┼───────────────┼─────────┤
30 │wcschr() │ Thread safety │ MT-Safe │
31 └────────────────────────────────────────────┴───────────────┴─────────┘
32
34 POSIX.1-2001, POSIX.1-2008, C99.
35
37 strchr(3), wcspbrk(3), wcsrchr(3), wcsstr(3), wmemchr(3)
38
40 This page is part of release 5.13 of the Linux man-pages project. A
41 description of the project, information about reporting bugs, and the
42 latest version of this page, can be found at
43 https://www.kernel.org/doc/man-pages/.
44
45
46
47GNU 2021-03-22 WCSCHR(3)