varargs -> varargs mystery
Doug Gwyn
gwyn at smoke.brl.mil
Tue May 7 06:30:37 AEST 1991
In article <3110 at cirrusl.UUCP> Rahul Dhesi <dhesi at cirrus.COM> writes:
>Briefly, the question was: if A and B are varags functions, how can
>one portably write them so that A uses one argument and passes the rest
>to B? The short answer is: you can't.
Sure you can, but you have to pass the remaining arguments via a va_list
parameter, not scattered about. I do this all the time.
More information about the Comp.lang.c
mailing list