A
antianti
Hello,
I have a function that has a variable # of arguments of varying types.
int foo(short a, ...)
{
va_list argp
va_start(argp, a);
...
va_end(argp);
}
I want to be able to call another function, offering the same
variable list of arguments to it.
int bar(int a, ...)
{
va_list argp
va_start(short, a);
...
va_end(argp);
}
How could such a thing be done?
The function bar does not have to use the ... expression
if not doing so will help.
Thanks.
I have a function that has a variable # of arguments of varying types.
int foo(short a, ...)
{
va_list argp
va_start(argp, a);
...
va_end(argp);
}
I want to be able to call another function, offering the same
variable list of arguments to it.
int bar(int a, ...)
{
va_list argp
va_start(short, a);
...
va_end(argp);
}
How could such a thing be done?
The function bar does not have to use the ... expression
if not doing so will help.
Thanks.