strrchr

Example: strrchrString Manipulation Functions

Finds the last occurrence of a character in a string.

char *strrchr( const char *string, int c ); 

string The string that is searched.
c The character that is searched for in the string.

Return Values

Returns a pointer to the first occurrence of string2 in string1. If string2 is not found in string1 the function returns NULL.