wcsstr(3C)


wcsstr, wcswcs -- find wide substring

Synopsis

#include <wchar.h>

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

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

Description

wcsstr locates the first occurrence in the wide character string pointed to by ws1 of the sequence of wide characters (excluding the terminating null wide character) pointed to by ws2.

Return values

Upon successful completion, wcsstr returns a pointer to the located wide character string, or a null pointer if the wide character string is not found.

wcsstr returns ws1 if ws2 points to a zero-length wide character string.

References

wchar(5), wcschr(3C)

Notices

If the feature test macro _XOPEN_SOURCE is defined then the following synopsis is available with equivalent behavior:

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


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004