ref: 19f4d62e77c2b66116a48c6605f2cc9f239e53b0 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; }