char* strrstr(char * _Str, const char * _SubStr)
{
const BYTE EQUAL=0;
int i=0, src_len = strlen(_Str), find_len = strlen(_SubStr),
tail_count=0;
for(i=src_len; i>-1; i--)
{
if(_Str[i] == _SubStr[0] && tail_count >= find_len)
{
if(strncmp(&_Str[i], _SubStr, find_len) == EQUAL)
{
return &_Str[i];
}
}
tail_count++;
}
return NULL;
}