int IsReverseStr(char str)
{
int i,j;
int found=1;
if(str==NULL)
return -1;
char p = str-1;
while(*++p!= '\0');
--p;
while(*str==*p&&str<p) str++,p--;
if(str < p)
found = 0;
return found;
while(*++p!= '\0');因为这里是++p,所以才用str-1
int IsReverseStr(char str)应该是
int IsReverseStr(char *str)