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