ref: 3c75d277b5d0bdbaff7de7d7c3a9c07a6638b75e dir: /src/libc/string/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; }