/* BFC035C0 */
char *strrchr(char *s, char c)
{
char *ss;
if(!s) return NULL;
/* save entry string */
ss = s;
/* parse to end of string */
if(*s++) while(*s++) ;
s--; /* skip zero */
do
{
if(*s == c) return s;
s--;
} while(s >= ss);
return NULL;
}