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