variable number of arguments

Tim Olson tim at amdcad.AMD.COM
Sat Feb 20 13:50:43 AEST 1988


In article <1608 at byzantium.UUCP> richwill at byzantium.UUCP (Rich Williamson) writes:
| I would like to pass the necessary parameters to sprintf but I
| don't know how to declare the arguments to MyXText.  I don't know
| how to declare a variable number of arguments.  Is it even possible?
| The family of printf() functions seem to be able to receive variable
| arguments, so it would seem to possible.

Some C libraries supply the vprintf, vfprintf, and vsprintf routines. 
These use the varargs facility to print a variable number of parameters.

	-- Tim Olson
	Advanced Micro Devices
	(tim at amdcad.amd.com)



More information about the Comp.lang.c mailing list