Share this page

# strrchr

Example: strrchr | String 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.

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: