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