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