#include #include #include /* [note to TAs: stdio for printf(), string for str*(), stdlib for exit()] */ /* * palindrome returns true if the argument string contains the same sequence * of characters backwards as it does forwards. */ int palindrome(char *s) { char t[100]; extern void reverse(char *from, char *to); if (strlen(s) >= 100) { printf("some useless error message\n"); exit(1); } reverse(s, t); return (strcmp(s, t) == 0); }