Locates the last occurrence of a specified character in a string.
#include <string.h> char *strrchr ( const char *s, int c);
(IN) Points to the string containing characters to be searched.
(IN) Specifies the character to locate.
Returns a pointer to the located character or a NULL pointer if the character does not occur in the string.
The strrchr function locates the last occurrence of c (converted to a char) in the string pointed to by s. The null-terminating character is considered to be part of the string.