#include #include int main() { char s[1000]; char *swap(char *); while (gets(s) != NULL) { char *p = swap(s); puts(p); free(p); } return EXIT_SUCCESS; }