Next: , Previous: , Up: Wchar strings   [Contents][Index]


6.24 wcsrchr—wide-character string scanning operation

Synopsis

#include <wchar.h>
wchar_t *wcsrchr(const wchar_t *s, wchar_t c);

Description
The wcsrchr function locates the last occurrence of c in the wide-character string pointed to by s. The value of c must be a character representable as a type wchar_t and must be a wide-character code corresponding to a valid character in the current locale. The terminating null wide-character code is considered to be part of the wide-character string.


Returns
Upon successful completion, wcsrchr returns a pointer to the wide-character code or a null pointer if c does not occur in the wide-character string.


Portability
wcsrchr is ISO/IEC 9899/AMD1:1995 (ISO C).

No supporting OS subroutines are required.