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