fix rsyscall handler: must not clobber errno from signal context
[oweals/musl.git] / src / string / index.c
1 #include <string.h>
2 #include <strings.h>
3
4 char *index(const char *s, int c)
5 {
6         return strchr(s, c);
7 }