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 - Find first occurrence of wide character string

&pagelevel(4)&pagelevel

Definition  

#include <wchar.h>

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

wcsstr searches for the first occurrence of a wide character string ws2 (without the terminating null byte) in the wide character string ws1.

Return val.

Pointer to the start of the wide character string found



if ws2 is found in ws1.


NULL pointer

if ws2 is not found in ws1.


ws1

if ws2 is a null pointer.                        

Note

The following two prototypes of the wcsstr function are applicable to 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