wcsstr()

locate first occurrence of substring within wide character string 

Function


SYNOPSIS

#include <wchar.h>

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


DESCRIPTION

The wcsstr() function locates the first occurrence of the string pointed to by ws2 in the string pointed to by ws1. The terminating NULL characters are not included in the search.


PARAMETERS

ws1 

Is a null-terminated string to search.

ws2 

Is a null-terminated string to search for.


RETURN VALUES

The wcsstr() function returns a pointer to the first occurrence of ws2 in the string pointed to by ws1. If ws2 does not appear in ws1, NULL is returned. If ws2 is a string of zero length, a pointer to ws1 is returned.


CONFORMANCE

ANSI/ISO 9899-1990/AM 1-1995.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
wcscmp(), wcscspn(), wcspbrk(), wcsrchr(), wcsspn()


PTC MKS Toolkit 10.5 Documentation Build 40.