#include #include #include #include int main(void) { char *line = NULL; size_t len = 0; ssize_t read = 0; while((read = getline(&line, &len, stdin)) != -1) { line[strcspn(line, "\n")] = 0; printf("
%s
",line,line,line); printf("\n"); } free(line); exit(0); }