wcsrchr

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

Library:LibC
Classification:ANSI
Service:Characters and Strings

Syntax

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

Parameters

ws

(IN) Points to the string containing wide characters to be searched.

c

(IN) Specifies the wide character to locate.

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 wcsrchr function locates the last occurrence of wc in the string pointed to by ws. The null-terminating character is considered to be part of the string.

See Also