Wrap C function which takes variable lengthed parameters?

Erik Max Francis max at alcyone.com
Fri Dec 14 01:15:42 EST 2001


Courageous wrote:

> Ouch! There's a way to do this, if I recall. Something to do
> with generating the varargs and prepping it correctly. Whether
> or not you can do this _portably_ is not something that I recall.

Yes.  Varargs can be used to make a va_list and pass that into another
function.  Use of varargs and va_list are ANSI compliant.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/  \ Laws are silent in time of war.
\__/ Cicero
    Esperanto reference / http://www.alcyone.com/max/lang/esperanto/
 An Esperanto reference for English speakers.



More information about the Python-list mailing list