Everything

strrchr


Searches a specified string for the last occurrence of a specified character.

[Format]

#include <string.h>

char *strrchr (const char *s, long c);

[Parameters]

s Pointer to the string to be searched

c Character to search for

[Return values]

If the character is found: Pointer to the found character

If the character is not found: NULL

[Remarks]

The strrchr function searches the string specified by s looking for the last occurrence of the character specified by c. If the c character is found, the function returns the pointer to the last occurrence of that character.

The null character at the end of the s string is included in the search objective.