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