Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!henry From: henry@utzoo.UUCP (Henry Spencer) Newsgroups: net.lang.c Subject: Re: gripe: variable arg lists Message-ID: <4648@utzoo.UUCP> Date: Fri, 16-Nov-84 12:42:33 EST Article-I.D.: utzoo.4648 Posted: Fri Nov 16 12:42:33 1984 Date-Received: Fri, 16-Nov-84 12:42:33 EST References: <348@gitpyr.UUCP>, <3106@alice.UUCP> Organization: U of Toronto Zoology Lines: 17 > But there is a standard method of dealing with variable argument lists. > #include > The contents of the file differ from machine to machine, but the `entry > points' are standard. Unfortunately, the ability to implement is, to some extent, machine-dependent. There are some machines where variable argument lists are very hard to do, and must be kludged in very machine-dependent ways. > As to why _doprnt() was used: that's pretty easy. There is no standard > analog to printf which accepts a variable argument list *as an argument*. There is, however, a portable mechanism to do this job: sprintf followed by passing the resulting string to whoever wants it. -- Henry Spencer @ U of Toronto Zoology {allegra,ihnp4,linus,decvax}!utzoo!henry