How to send variadic arguments

Zarathustra adam.chrapkowski at gmail.com
Mon Aug 25 07:19:37 PDT 2008


How to send variadic arguments to other function?

Of course, I can read each argument by using:
_argptr is a pointer to arguments list
_arguments is an array of argument types

But I need to straight send all variadic arguments to other function.

for example:

void func1(char [] o_str, ...){
}
void func2(int o_num, ...){
  func2("func2", /* What here? */)
}

Thanks in advance.


More information about the Digitalmars-d-learn mailing list