[ILUG] nasty varargs question...

Guest, Ken kengu at credo.ie
Wed Jan 10 14:43:25 GMT 2001


#-----Original Message-----
#From: John P . Looney [mailto:john at antefacto.com]
#Sent: 10 January 2001 14:32
#To: ilug at linux.ie
#Subject: Re: [ILUG] nasty varargs question...
#
#
#On Wed, Jan 10, 2001 at 02:31:07PM +0000, David Neary mentioned:
#> This should do it, I think...
#
# Nice one. At the risk of sounding stupid...what happened the 
#... things ?

http://osr5doc.sco.com:457/cgi-bin/printchapter/topics/BOOKCHAPTER-2.html
should answer
all your questions about variable arguments in C, essentially though (if I
remember correctly),
all the variable arguments get loaded into the array specified by va_start.
The '...' is required
in the prototype to communicate to the compiler that the function expects a
variable number of
arguments.

Ken




More information about the ILUG mailing list