#include /* * palindrome returns true if the argument string contains the same sequence * of characters backwards as it does forwards. */ int palindrome(char *s) { int i; int len = strlen(s); for (i = 0; i < len / 2; i++) if (s[i] != s[len - i - 1]) return 0; return 1; }