int isSymmetry(char str[]){
int length=strlen(str);
if(length==0)return -1;
for (int i=0;i<length/2;i++)
{
if(str[i]!=str[length-i-1])return 0;
}
return 1;
int length=strlen(str);
if(length==0)return -1;
for (int i=0;i<length/2;i++)
{
if(str[i]!=str[length-i-1])return 0;
}
return 1;
}
http://blog.csdn.net/cyhleo/article/details/6852115