Name

strrchr function — Locates rightmost occurrence of a character

Synopsis

const char* strrchr(const char* str, int c)
      char* strrchr(      char* str, int c)

The strrchr function returns a pointer to the last (rightmost) occurrence of c (converted to unsigned char) in the null-terminated string s. If c does not appear in s, NULL is returned.