ref: 1b93241842ebf1e5a7efaf62b1fcaf02a7c6d4e5 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; }