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