ref: af25b58d05b0700990057ce3f8c853bd43f2ece0 dir: /lib/c/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; }