Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

wcsrchr - get last occurrence of wide character in wide character string

&pagelevel(4)&pagelevel

Syntax

#include <wchar.h>

wchar_t *wcsrchr(const wchar_t *ws, wint_t wc); 

Description

wcsrchr() searches for the last occurrence of character wc in the wide character string ws
and returns a pointer to the located position in ws if successful.

The terminating null wide character code (\0) is considered to be part of the wide character
string.

Return val.

Pointer to the position of wc in the wide character string ws


Null pointer

 if wc is not contained in the wide character string ws.

Notes

Restriction
This version of the C runtime system only supports 1-byte characters as wide character
codes. They are of type wchar_t (see stddef.h). (End)

 

See also

wcschr(), wchar.h