INtime SDK Help
strrchr, wcsrchr

Searches a string for the last occurrence of a character.

#include <string.h>

char *strrchr (const char *string, int c); #include <wchar.h&rt;

wchar_t *wcsrchr(const wchar_t *string, wchar_t c);

Parameters

string
String to search.
c
Character to find.

Remarks

The string's terminating null character is included in the search.

Use strchr to find the first occurrence of c in string.

wcsrchr is the wide-character version of strrchr.

Return Values

A pointer to the last occurrence of the character in the string.
Success.
A null pointer if the character is not found.
Failure.

Generic Text Routines

tchar.h routine _UNICODE not defined _UNICODE defined
_tcsrchr strrchr wcsrchr

Requirements

Versions Defined in Include Link to
INtime 3.0
INtime 6.0 (for wid-echaracter and generic text versions)
intime/rt/include/string.h
intime/rt/include/wchar.h
intime/rt/include/tchar.h
string.h
wchar.h
tchar.h
clib.lib
See Also