ref: 355f73cb919d009d7527b5083ae8341f0ceea97d
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;
}