Austin, Alex wrote:
That's all about unpacking an arglist.
No, it does both 'packing' and 'unpacking'.
I need to pack an arglist. Also, the function in question isn't actually printf, but a custom API, and it doesn't have a vprintf equivalent.
If your architecture is supported by libffi, and the vargs ABI is the same as the ABI for fixed args, libffi should do exactly what you need.
David Daney