1wcsrchr(3) Library Functions Manual wcsrchr(3)
2
3
4
6 wcsrchr - 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 *wcsrchr(const wchar_t *wcs, wchar_t wc);
15
17 The wcsrchr() function is the wide-character equivalent of the str‐
18 rchr(3) function. It searches the last occurrence of wc in the wide-
19 character string pointed to by wcs.
20
22 The wcsrchr() function returns a pointer to the last 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 │wcsrchr() │ Thread safety │ MT-Safe │
34 └────────────────────────────────────────────┴───────────────┴─────────┘
35
37 C11, POSIX.1-2008.
38
40 POSIX.1-2001, C99.
41
43 strrchr(3), wcschr(3)
44
45
46
47Linux man-pages 6.04 2023-03-30 wcsrchr(3)