ref: 9d9d7716dbc95db5e4381289debeb2c22ff0a1e9
dir: /src/libc/string/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) ? t : NULL;
}