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