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