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