char * strrchr

char * strrchr(const char *, int) __ATTR_PURE__

The strrchr() function returns a pointer to the last occurrence of the character val in the string src.

Here "character" means "byte" - these functions do not work with wide or multi-byte characters.

Remember:

The strrchr() function returns a pointer to the matched character or NULL if the character is not found.