What is _doprnt(fmt,args,&fil)?

Chris Torek chris at mimsy.umd.edu
Thu Aug 16 11:07:34 AEST 1990


In article <1990Aug15.233317.18877 at athena.mit.edu>
seaotter at 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 at cs.umd.edu	Path:	uunet!mimsy!chris
	(New campus phone system, active sometime soon: +1 301 405 2750)



More information about the Comp.lang.c mailing list