#define _BSD_SOURCE #include #include char *rindex(const char *s, int c) { return strrchr(s, c); } #ifdef TEST int main(void) { return 0; } #endif