ref: 19f4d62e77c2b66116a48c6605f2cc9f239e53b0 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) ? s : NULL; }