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