{ getline tmp while(1) { if(tmp!=42) {print getline tmp} else close(tmp) } }
10 12 88 55 42
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!