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