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