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