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