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