Line Buffered output

Peter da Silva peter at ficc.uu.net
Wed Oct 5 23:50:23 AEST 1988


In article <26327 at ucbvax.BERKELEY.EDU>, edward at ucbarpa.Berkeley.EDU (Edward Wang) writes:
> In article <1686 at ficc.uu.net> peter at ficc.uu.net (Peter da Silva) writes:
> >[about flushing stdout when reading stdin]
> >But it's *Berkeley* that had the smart stdio in the first place! I know
> >that I ran into this on 2.something at Berkeley in 1980 and thought it
> >was way-cool. When and why was it removed, or did it just not get migrated
> >to 4BSD?

> That was in Berkeley Pascal.

No, it was in 'C', on at least one version of 2.x BSD. I know because I
got burned depending on it when I ported 'C' programs that didn't do an
fflush() after a prompt. I never used Berkeley Pascal on version 7 (though
I did use it on V6 until Ken Arnold convinced me 'C' was cooler. I do seem
to remember that you always had to fflush(stdout) using the -lS libraries
under V6, but that I won't swear to).
-- 
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