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