Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

OSS Library Calls (w - z) wcswcs(3)
NAME
wcswcs - Searches for a substring in a wide-character string
LIBRARY
G-series native Guardian processes: $SYSTEM.SYSnn.ZCRTLSRL
G-series native OSS processes: /G/system/sysnn/zcrtlsrl
H-series and J-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCRTLDLL
32-bit H-series and J-series OSS processes: /G/system/zdllnnn/zcrtldll
64-bit H-series and J-series OSS processes: /G/system/zdllnnn/ycrtldll
SYNOPSIS
#include <wchar.h>
wchar_t *wcswcs(
wchar_t *wcstring1,
wchar_t *wcstring2);
PARAMETERS
wcstring1 Points to the wide-character string that is being searched.
wcstring2 Points to the wide-character string that is to be located.
DESCRIPTION
The wcswcs( ) function locates the first occurrence of a wide-character string in another wide-
character string. It locates the first occurrence in the string pointed to by the wcstring1 parameter
of the sequence of wchar_t characters (excluding the terminating null wide character) in the
string pointed to by the wcstring2 parameter.
RETURN VALUES
The wcswcs( ) function returns a pointer to the located wide-character string or the null pointer if
the wide-character string is not found. If the wcstring2 parameter points to a wide-character
string with zero length, the function returns the wcstring1 parameter.
RELATED INFORMATION
Functions: strstr(3), wcspbrk(3).
527187-017 Hewlett-Packard Company 851