ref: 128f871fd0d4943b50c2de4b5afcde1b1210ae30
dir: /lib/c/src/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; }