wcschr

Locates the first occurrence of a specified character in a wide-character string.

Library:LibC
Classification:ANSI
Service:Characters and Strings

Syntax

  #include <wchar.h> 
   
  wchar_t *wcschr (
     const wchar_t   *ws,
     wchar_t          wc);
  

Parameters

ws

(IN) Points to the wide-character string containing characters for which to search.

wc

(IN) Specifies the wide character for which to search.

Return Values

Returns a pointer to the located wide character or a NULL pointer if the wide character does not occur in the string.

Remarks

The wcschr function locates the first occurrence of wc in the string pointed to by ws. The null-terminating character is considered to be part of the string.

See Also

wcsrchr