Variable arguments to & from functions.
akshay.kumar.deshpande
akshay at cbnewsm.att.com
Tue Jun 18 06:53:14 AEST 1991
I am trying to write a variable argument function which in turn
calls another variable argument function. Can anybody tell me how
to pass the unknown arguments I receive to the next function.
Here is a psuedo example:
A(int arg1, ...)
{
.
.
va_start(ap, fmt); /* from K&R 2nd edition - p 156 */
.
B(arg1, arg2, arg3, <...>);
.
}
B(int arg1, int arg2, int arg3, ...);
{
.
.
.
}
I would like to have the "..." of A match that for the function
call of B.
-akshay
speedy at att.att.com
(908) 957-3252
More information about the Comp.lang.c
mailing list