Wrap C function which takes variable lengthed parameters?

Courageous jkraska at san.rr.com
Mon Dec 17 00:31:36 EST 2001


On Mon, 17 Dec 2001 17:37:17 +1300, Greg Ewing <greg at cosc.canterbury.ac.nz> wrote:

>Just van Rossum wrote:
>> 
>> But you can't contstruct a va_list and pass it to a _vararg_ function;
>
>You can construct a wrapper that will handle up to
>some maximum number of parameters, by exploiting the
>fact that a varargs function doesn't care if you pass
>it more parameters than it's expecting --

Is this guaranteed not to corrupt the stack on all systems?

C//




More information about the Python-list mailing list