![]() |
strrchr | Function (ROM Call 0x277) |
string.h |
char *strrchr (const char *str, short c); |
Finds the last occurrence of c in str.
strrchr scans a string in the reverse direction, looking for a specific character. strrchr finds the last occurrence of the character c in the string str. The null-terminator is considered to be part of the string. strrchr returns a pointer to the last occurrence of the character c. If c does not occur in str, strrchr returns NULL.