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