fflush after prompts (was: Line Buffered output)

Peter da Silva peter at ficc.uu.net
Mon Oct 10 23:49:52 AEST 1988


In article <7389 at bloom-beacon.MIT.EDU>, scs at athena.mit.edu (Steve Summit) writes:
> This crotchety old fart believes that you should always do an
> fflush after an interactive prompt, anyway, because:

You're entirely right. You should also do an explicit fflush after
any atomic block of text as well, and take those tests for newline
out of putc().

Why would one's atomic blocks not be lines? Look at the verbose output
from pack (1) some time.
-- 
Peter da Silva  `-_-'  Ferranti International Controls Corporation.
"Have you hugged  U  your wolf today?"            peter at ficc.uu.net



More information about the Comp.unix.wizards mailing list