DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

wcsstr(S)


wcsstr -- find wide substring

Syntax

cc ...-lc

#include <wchar.h>

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

Description

wcsstr(S) 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

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

wcsstr( ) returns ws1 if ws2 is a null pointer or points to a zero-length wide character string.

Diagnostics

This function does not set errno.

See also

iswctype(S), wcschr(S)

Standards conformance

wcsstr(S) is not part of any currently supported standard; it was developed by UNIX System Laboratories, Inc. and is maintained by The SCO Group.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003