| WCSRCHR(3) | Library Functions Manual | WCSRCHR(3) |
wcsrchr — locate
last occurrence of a wide character in a wide string
#include
<wchar.h>
wchar_t *
wcsrchr(const
wchar_t *s, wchar_t
c);
The
wcsrchr()
function locates the last occurrence of the wide character
c in the wide string s. The
terminating null wide character is considered part of the wide string. If
c is the null wide character (L'\0'),
wcsrchr() locates the terminating null wide
character.
The wcsrchr() function returns a pointer
to the located wide character or NULL if the wide
character does not appear in the wide string.
strrchr(3), wcschr(3), wcscspn(3), wcspbrk(3), wcsspn(3), wcsstr(3), wcstok(3), wmemchr(3)
The wcsrchr() function conforms to
ISO/IEC 9899:1999 (“ISO C99”)
and was first introduced in ISO/IEC 9899/AMD1:1995
(“ISO C90, Amendment 1”).
The wcsrchr() function was ported from
NetBSD and first appeared in
OpenBSD 3.8.
| June 5, 2013 | openbsd |