1wcschr(3) Library Functions Manual wcschr(3)
2
3
4
6 wcschr - search a wide character in a wide-character string
7
9 Standard C library (libc, -lc)
10
12 #include <wchar.h>
13
14 wchar_t *wcschr(const wchar_t *wcs, wchar_t wc);
15
17 The wcschr() function is the wide-character equivalent of the strchr(3)
18 function. It searches the first occurrence of wc in the wide-character
19 string pointed to by wcs.
20
22 The wcschr() function returns a pointer to the first occurrence of wc
23 in the wide-character string pointed to by wcs, or NULL if wc does not
24 occur in the string.
25
27 For an explanation of the terms used in this section, see at‐
28 tributes(7).
29
30 ┌────────────────────────────────────────────┬───────────────┬─────────┐
31 │Interface │ Attribute │ Value │
32 ├────────────────────────────────────────────┼───────────────┼─────────┤
33 │wcschr() │ Thread safety │ MT-Safe │
34 └────────────────────────────────────────────┴───────────────┴─────────┘
35
37 C11, POSIX.1-2008.
38
40 POSIX.1-2001, C99.
41
43 strchr(3), wcspbrk(3), wcsrchr(3), wcsstr(3), wmemchr(3)
44
45
46
47Linux man-pages 6.05 2023-07-20 wcschr(3)