#include <string.h>
char *strrchr(const char *string, int c);
The strrchr() function finds the last occurrence of c (converted to a char) in string. The ending NULL character is considered part of the string.
If successful, strrchr() returns a pointer to the last occurrence of c in string.
If the given character is not found, strrchr() returns a NULL pointer.