ref: 2e89286f4ee1ef53e3acb6e4ef4b43909e9fc9e8
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;
}