ref: 4eb0595fdcfb5064a5f81b1ffe4fb2de4c6a3dd3 dir: /lib/c/src/strchr.c/
#include <string.h> #undef strchr char * strchr(const char *s, int c) { while (*s && *s != c) ++s; return (*s == c) ? (char *)s : NULL; }