/*whether a string is or not plalindrome. if true, return 1, otherwise return 0.*/
int is_plalindrome(const char *src)
{
const char *end = src + (strlen(src) - 1);
while(src <= end)
{
if (*src++ != *end--)
{
/* code */
return 0;
}
}
return 1;
}