Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

wcswcs - find wide character substring in wide character string

&pagelevel(4)&pagelevel

Syntax

#include <wchar.h>

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

Description

wcswcs() locates the first occurrence of the wide character string ws2 (excluding the
terminating null wide character code) in the wide character string ws1.

Return val.

Pointer to the start of the wide character string found in ws1.


Null pointer

if ws2 is not contained in ws1.


Pointer

to the start of ws1 if ws2 has a length of 0.

Notes

Wide character strings terminated with a null wide character code (\0) are expected as
arguments.

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.