1#define _BSD_SOURCE 2#include <string.h> 3#include <strings.h> 4 5char *rindex(const char *s, int c) 6{ 7 return strrchr(s, c); 8} 9