wcsindex

Finds the index of the first occurrence of the search string in the specified wide-character string.

Library:LibC
Classification:Other
Service:Characters and Strings

Syntax

  #include <wchar.h> 
   
  wchar_t  *wcsindex (
     const wchar_t   *str,
     const wchar_t   *search);
  

Parameters

str

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

search

(IN) Points to string to find in the scanned string.

Return Values

Returns one of the following values:

Non-NULL

Pointer to the index of the first occurrence of the search string.

NULL

The search string does not occur in the scanned string.

See Also