On Wed, Jan 17, 2001 at 02:14:15PM -0600, John Komp wrote: > Why would the addition of a \n fix the code. It appears to flush the > print buffer. That's exactly why \n fixes it. printf provides buffered output, which means 'output gets stored until there appears to be a reason to send it, because I/O is slow'. A newline is generally considered to constitute a reason to flush the buffer. If you want to flush stdout without printing a newline, use fflush(stdout); -- SGI products are used to create the 'Bugs' that entertain us in theatres and at home. - SGI job posting Geek Code 3.1: GCS d? s+: a- C++ UL++$ P++>+++ L+++>++++ E- W--(++) N+ o+ !K w---$ O M- V? PS+ PE Y+ PGP t 5++ X+ R++ tv b+ DI++++ D G e* h+ r y+