ref: ac7e083f2c70bde5e5361c8cf2fcf116ddc1b5f1 dir: /lib/c/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; }