// copy lines from stdin to stdout // #include #define SIZE 8096 // size of the line char array int main( void) { char line[SIZE]; while( 1) // until end-of-file { if( fgets( line, SIZE, stdin) == 0) break; fputs( line, stdout); } return 0; }