Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

wcschr - scan wide character string for wide characters

&pagelevel(4)&pagelevel

Syntax

#include <wchar.h>

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

Description

wcschr() searches for the first occurrence of the wide character wc in the wide character
string ws and returns a pointer to the located position in ws if successful. The value of wc
must be a character representable as a type wchar_t and must be a wide-character code
corresponding to a valid character in the current locale.

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

Syntax

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



if successful.


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

wcsrchr(), wchar.h.