B
Boltar
Hi
I think I posted a question similar to this on here a while back but I
can't find the thread and I need something more general anyway.
My problem is I have 2 variadic functions , one of which needs to call
the other passing its entire argument list but the other needs to be
callable from anywhere else in the program as a variadic too, ie it
*can't* have va_list as a paramater type.
eg:
void func1(char *fmt, ...)
{
prepend something to format
func2(fmt,args);
}
void func2(char *fmt,...)
{
}
Is this possible? Nothing I try seems to work.
Thanks for any help
B2003
I think I posted a question similar to this on here a while back but I
can't find the thread and I need something more general anyway.
My problem is I have 2 variadic functions , one of which needs to call
the other passing its entire argument list but the other needs to be
callable from anywhere else in the program as a variadic too, ie it
*can't* have va_list as a paramater type.
eg:
void func1(char *fmt, ...)
{
prepend something to format
func2(fmt,args);
}
void func2(char *fmt,...)
{
}
Is this possible? Nothing I try seems to work.
Thanks for any help
B2003