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