va_arglist

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux