ref: e9e9983ebccd77f991af91b1010b179f556148ff 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) ? (char *) s : NULL; }