ref: 3035e9988fe30cd88f64c070e7b3d80a4b2c7fd5 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; }