Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!haven!mimsy!chris From: chris@mimsy.umd.edu (Chris Torek) Newsgroups: comp.lang.c Subject: Re: What is _doprnt(fmt,args,&fil)? Message-ID: <26030@mimsy.umd.edu> Date: 16 Aug 90 01:07:34 GMT References: <1990Aug15.233317.18877@athena.mit.edu> Distribution: na Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 23 In article <1990Aug15.233317.18877@athena.mit.edu> seaotter@athena.mit.edu (Stacy L Ramirez) writes: > static FILE fil; > _doprnt(fmt,asrgs,&fil); >but I can't find any documentation of what _doprnt is .... _doprnt does not exist. Well, at least not on my machine. (Neither does stdin->_flag. One might be surprised how many programs use the latter. NNTP just broke, for instance.) The reason there is no documentation is that it is an internal, private function. It implements the raw workings of `printf' based on a bunch of private data fields in the `FILE' argument. >Can someone please tell me what it does and how I can implement it with >other functions from the standard headers? Chances are that whatever program you have that uses _doprnt actually wants vsprintf. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@cs.umd.edu Path: uunet!mimsy!chris (New campus phone system, active sometime soon: +1 301 405 2750)