stdarg: safe to pass va_list * and have callees va_arg(*args, type)??

Andomar nothing@like.the.sun
Fri Oct 1 00:00:00 GMT 1999


One question: why are you passing a pointer to the
va_list?  You can just pass the va_list itself,
vsnprintf does that for example.

And since vsnprintf does it, I think it's safe
and legal use of va_list.



More information about the Gcc-help mailing list