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