//返回0:无中文,返回1:有中文
int IncludeChinese(char *str)
{
int nRet = 0;
char c;
while(c=*str++)
{
//如果字符高位为1且下一字符高位也是1则有中文字符
if( (c&0x80) && (*str & 0x80) )
{
nRet = 1;
break;
}
}
return nRet;
}
int IncludeChinese(char *str)
{
int nRet = 0;
char c;
while(c=*str++)
{
//如果字符高位为1且下一字符高位也是1则有中文字符
if( (c&0x80) && (*str & 0x80) )
{
nRet = 1;
break;
}
}
return nRet;
}