ref: 4eb0595fdcfb5064a5f81b1ffe4fb2de4c6a3dd3
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;
}