Ian Partridge <i.*********@DI ESPAM.uk.ibm.co m> wrote:
# Hi,
#
# I want to write a varargs function which then passes its parameters to
# another varargs function. I have RTFFAQ:
static void plover(int x,...) {va_list L; va_start(L,x); etc;}
static void plugh(int x,...) {va_list L; va_start(L,x); plover(x,L); etc;}
This won't work. You need a version of plover that accepts a va_list.
static void vplover(int x,va_list L) {...}
static void plover(int x,...) {va_list L; va_start(L,x); vplover(x,L);}
static void plugh(int x,...) {va_list L; va_start(L,x); vplover(x,L); etc;}
# which says that the other function should accept a va_list pointer to do
# this. However, I can't seem to get this answer working.
#
# Would someone mind posting a simple example of how this can be done?
--
Derk Gwen
http://derkgwen.250free.com/html/index.html
One of the drawbacks of being a martyr is that you have to die.