#define _BSD_SOURCE #include #include char* rindex(const char* s, int c) { return strrchr(s, c); }