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