ref: 5c0bbb5ff6603cf20c4e3f4ec16dd7b60799cb85 dir: /src/libc/string/strrchr.c/
#include <string.h> #undef strrchr char * strrchr(const char *s, int c) { const char *t = s; while (*t) ++t; while (t > s && *t != c) --t; return (*t == c) ? t : NULL; }