Thanks for suggestion, definitely doable, more verbose vs the scanf, but will do the trick. I will use it as my fallback, if no path with my current approach. Yair. Sent from my iPad
> On Jul 6, 2022, at 10:17 AM, David Brown <da...@westcontrol.com> wrote: > > I haven't worked through all the details, but I wonder if this could be > turned around a bit. Rather than your function taking a variable number of > arguments of different types, which as you know can be a risky business, have > it take an array of (type, void*) pairs (where "type" is an enumeration). > Use some variadic macro magic to turn the "RESULT_SET_READ" into the creation > of a local array that is then passed on to the function.