va_arglist
Austin, Alex
Alex.Austin@spectrumdsi.com
Tue Dec 2 12:48:00 GMT 2008
Is there any way to write code to generate a variable argument list and call a variable function?
For example:
int callPrintf(char *format, void *args[])
{
void **arg;
for(arg = args; *arg != NULL; arg++)
PushAnArgument(*arg);
return printf(format);
}
I am trying to wrap a poorly-designed API in a Python extension module. There is no way to separate out the variable argument call to multiple calls.
Is this possible?
- Alex
More information about the Gcc-help
mailing list