#include #include int main() { extern void playwith(char *s); playwith("fred"); playwith("otto"); playwith("Madam, I'm Adam"); playwith("madamimadam"); return 0; } void playwith(char *s) /* s must be a string with length < 50 */ { char to[50]; extern void reverse(char *from, char *to); extern int palindrome(char *s); reverse(s, to); printf("%s reversed is %s\n", s, to); printf("It %s a palindrome\n\n", palindrome(s) ? "is" : "isn't"); }