ref: 9332f34cf7bae72b9ccaa290cae5a1eec3f34f3d dir: /src/libc/string/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; }