/* Search a character backword from the end of given string. Returns a pointer to the character location.  */
char* strrchr(const char *pString, int character)
/* Search a character backword from the end of given string. Returns a pointer to the character location.  */
char* strrchr(const char *pString, int character)
{
    char *p = 0;
    while(*pString != 0) {
        if (*pString++ == character) {
            p = (char*)pString;
        }
    }
    return p;
}