ref: e06ce64d6557512a21c46a2dfa864f2e9a08f70b
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) ? (char *) t : NULL; }