ref: 4f93908533138a0efbdffd880003438f98af736e
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) ? (char *)t : NULL;
}