[Previous] [Contents] [Next]

wcsrchr()

Find the last occurrence of a wide character in a string

Synopsis:

#include <wchar.h>

wchar_t * wcsrchr( const wchar_t * ws,
                   wchar_t wc );

Library:

libc

Description:

The wcsrchr() function finds the last occurrence of wc (converted to a wchar_t) in the string pointed to by ws. The terminating NUL character is considered to be part of the string.

Returns:

NULL
Failure; wc doesn't occur in the string.
x
Success; a pointer to the located character.

Classification:

ANSI

Safety:
Cancellation point No
Interrupt handler Yes
Signal handler Yes
Thread Yes

See also:

"String manipulation functions" and "Wide-character functions" in the summary of functions chapter.


[Previous] [Contents] [Next]