github.com/afumu/libc@v0.0.6/musl/src/string/index.c (about) 1 #define _BSD_SOURCE 2 #include <string.h> 3 #include <strings.h> 4 5 char *index(const char *s, int c) 6 { 7 return strchr(s, c); 8 }