Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

wcsstr - search for first occurrence of a wide character string

&pagelevel(4)&pagelevel

Syntax

#include <wchar.h>

wchar_t *wcsstr( const wchar_t *ws1, const wchar_t *ws2);

Description

wcsstr() searches for the first occurrence of the wide character string ws2 (not including the terminating null) in the wide character string ws1.

Return val.

Pointer to the start of the string found



if ws2 is found in ws1.


Null pointer

if ws2 is not found in ws1.              


ws1

if ws2 is a null pointer.

Notes

The following two function prototypes of the function wcsstr() are valid for C++:
const wchar_t* wcsstr(const wchar_t *ws1, const wchar_t *ws2);

 wchar_t* wcsstr( wchar_t *ws1, const wchar_t *ws2);

See also

strstr(), wmemcmp(), wmemcpy(), wmemchr().