gjt211:
Hi Juraj, thanks for your input.
I have been trying to work out how to create the va_list. No good results so far.
I was starting to think if I pass in the va_list in an array it might work but have not got that far yet.
I was also thinking of building it one variable at a time but was hoping not to have to.
I might end up going that way.
the va_list is to process the ... args. it is very tricky.
btw: nor do I understand what PaulS does not like on how you use sprintf in the test example