/* * palindrome returns true if the argument string contains the same sequence * of characters backwards as it does forwards. */ int palindrome(char *s) { char *t; /* find end of string */ for (t = s; *t; t++) ; while (s < t) if (*s++ != *--t) return 0; return 1; }