Eric Wilhelm wrote:
http://www.faqs.org/faqs/C-faq/faq/index.html
" 15.12: How can I write a function which takes a variable number of arguments and passes them to some other function (which takes a variable number of arguments)?
Bah .... I consulted that very same FAQ a coupla days ago. I checked Q's 15.4, 15.5 and 15.7, but didn't notice 15.12 :-)
A: In general, you cannot. Ideally, you should provide a version of that other function which accepts a va_list pointer (analogous to vfprintf(); see question 15.5 above). If the arguments must be passed directly as actual arguments, or if you do not have the option of rewriting the second function to accept a va_list
Well, of course, 'vprintf' (and 'gmp_vprintf') both accept a va_list - so they don't even need to be rewritten. I think this *is* an option .... now, if I can just get my head around the finer points of what needs to be done ...
Thanks Eric.
Cheers, Rob
