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

Definition   

#include <wchar.h>

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

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 wchar_t type 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.

Return val.

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

This version of the C runtime system only supports one-byte characters as wide character codes.

The following two prototypes of the wcschr function are applicable to C++:
const wchar_t* wcschr(const wchar_t *ws, wchar_t wc);
          wchar_t* wcschr( wchar_t *ws, wchar_t wc);

See also

strchr, wcsrchr