Code:
bool testfuc(void *in1, void *in2, ...)
{
va_list arg;
va_start(arg, in2);
...
va_end(arg);
return true;
}
// code 1
testfuc(NULL, NULL, 1, 2, 3);
// code 2
void *pp = &some_int;
testfuc(NULL, NULL, "a", pp, anotherint, 0.5f);
//code 3
testfunc(NULL, NULL, p3);
question is:
in code 3, how to pack/pass or do something to "p3", make the result same as code 1 & code 2?