wcsstr

Locates the first occurrence in the string pointed to by s1 of the sequence of wide characters in the string pointed to by s2.

Format

#include  <wchar.h>

wchar_t *wcsstr  (const wchar_t *s1, const wchar_t
                 *s2);
Function Variants This function also has variants named _wcsstr32 and _wcsstr64 for use with 32-bit and 64-bit pointer sizes, respectively. See Section 1.8 for more information on using pointer-size-specific functions.

Arguments

s1, s2
Pointers to null-terminated, wide-character strings.

Description

If s2 points to a wide-character string of zero length, the function returns s1.

Return Values
A pointer to the located string. 
NULL  Indicates an error; the string was not found. 


Previous Page | Next Page | Table of Contents | Index