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