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