ref: 4eaac6bfb11cc84259e8b418d4babffdf1c637eb
dir: /lib/c/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; }