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