wcsstr

Scans a wide-character string for the first occurrence of a given substring.

Library:LibC
Classification:ANSI
Service:Characters and Strings

Syntax

  #include <wchar.h> 
   
  wchar_t  *wcsstr (
     const wchar_t   *wcs,
     const wchar_t   *substr);
  

Parameters

wcs

(IN) Points to a wide-character string to scan.

substr

(IN) Points to a wide-character substring for which to search.

Return Values

Returns a pointer to the located wide-character string, or a NULL pointer if the wide-character string is not found.

Remarks

The wcsstr function locates the first occurrence in the wide-character string pointed to by wcs of the sequence of characters in the string pointed to by substr.

See Also