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