ref: 6d3d7af1e88c1e466579c95b6538d0f2c9bebd8a 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) ? s : NULL; }