[comp.os.os9] Varargs, v*printf

blarson@blars (10/15/90)

In article <1546@digiw.UUCP> dm@digiw.UUCP (Dick Mihalowsky) writes:
> I am still waiting for Microware to implement
><varargs.h> 

Microware has had the public domain one I wrote for several years.
Ask them why they don't include it.  (I admit it is ugly, and makes
you more likely to run into the stupid line length limit.) It is
availabe in several places, including the mg2a distribution in the
comp.sources.misc archives.

>(or <stdarg.h> if you insist)

This will take compiler support.

> and a working set of the vprintf(3) -family.

My portable v*printf stuff is also in the comp.sources.misc archives.
I wrote it for OSK, but it realy should work anywhere.  They do depend
on sprintf, so most ansi features lacking in your sprintf arn't
supported.

>Still hacking on variable argument functions for OSK!

Watch out for the documented bug: "Calls with fewer than two actual
paramaters to functions that affect varying numbers of paramaters
won't resore d1."  Strange, a non-floating point bug I havn't
encontered in practice.


-- 
blarson@usc.edu
		C news and rn for os9/68k!
-- 
Bob Larson (blars)	blarson@usc.edu			usc!blarson
	Hiding differences does not make them go away.  Accepting
	differences makes them unimportant.