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