2 ms·You need a test for the exit condition (read returning back -1) and you need to flush stdout.by cbsmith 13y agoYou need a test for the exit condition (read returning back -1) and you need to flush stdout.jbooth 13y agoRight, thanks. Either way, it's not rocket surgery.cbsmith 13y agoAgreed. Then again, you did mess it up the first time, so I guess it is an effective test. Everyone uses the buffer, which I find amusing.