printf implementation

Chris Torek chris at mimsy.umd.edu
Fri Feb 2 12:03:36 AEST 1990


In article <29007 at amdcad.AMD.COM> srini at diablo.amd.com writes:
>I would like to know why printf is implemented separately for shells
>(like in C shell)? I know one reason - efficiency. Are there others?

csh has its own private printf because csh did not quite fit on a
PDP-11 without split I&D, and Bill Joy chipped a bit here and a bit
there to make it fit.  One of the chips was stdio.

>Also, how is printf implemeted (upto the _write level) in library?
>It calls a function _doprnt. What happens from there?

What makes you think it calls _doprnt?  Mine calls vfprintf.
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris at cs.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.unix.questions mailing list