Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!mailrus!uflorida!haven!mimsy!chris From: chris@mimsy.umd.edu (Chris Torek) Newsgroups: comp.unix.questions Subject: Re: printf implementation Message-ID: <22238@mimsy.umd.edu> Date: 2 Feb 90 01:03:36 GMT References: <29007@amdcad.AMD.COM> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 15 In article <29007@amdcad.AMD.COM> srini@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@cs.umd.edu Path: uunet!mimsy!chris