>>675
質問とは違うけど、一応参考に・・・
#include <stdio.h>
#include <string.h>

int main(void)
{
char str[256];
gets(str);

char* f = str;
char* e = str + strlen(str) - 1;

while(f < e)
{
if(*f != *e)
break;
f++;
e--;
}

if(f >= e)
puts("回文です");
else
puts("回文じゃないよ");

return 0;
}