/* libc/string/strrchr.c Finds the last occurrence of a byte in a string  */
char* strrchr(const char *s, int c)
/* libc/string/strrchr.c Finds the last occurrence of a byte in a string  */
char* strrchr(const char *s, int c)
{
	const char * p = s + strlen(s);
	do {
	   if (*p == (char)c)
		   return (char *)p;
	} while (--p >= s);
	return NULL;
}