Locate character in string.

char * strrchr(void)

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.

Returns

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