Search a string for the last occurance of a character.
char * strrchr (char * string, int c);
Required Header |
<string.h> |
Return Value
The position of the last occurance of the character in the destination string is returned. NULL indicates the character could not be found.
Parameters
string
A string
c
The character to search for
Remarks
The null-terminator character is included in the search.