#include<stdio.h>
#include<string.h>
#include<ctype.h>
int is_palindrome(char *string);
int main(int argc,char *argv[]){
char str[]="Madam,I'm Adam";
fputs(is_palindrome(str)?"It's a palindrome.\n":"It's not a palindrome.\n",stdout);
return 0;}
//
int is_palindrome(char *string){
char *prear=string+strlen(string)-1;
for(;string<prear;){
for(;!isalpha(*string);string++);
for(;!isalpha(*prear);prear--);
if(tolower(*string++)!=tolower(*prear--)) return 0;
}
return 1;}