[KLUG Programming] Passing on variable argument lists.
Adam Williams
programming@kalamazoolinux.org
Sun, 08 Feb 2004 21:22:12 -0500
On Sun, 2004-02-08 at 21:11, Robert G. Brown wrote:
> Must you use vsprint in your app??
No, that is just in the example; indicating that you have to have a
special type of function to pass a va_list type (hence - I'm screwed).
What I need to do it is create a function that accepts a variable
argument list and then pass that variable argument list on to a function
that itself accepts a variable argument list - it appears this can't be
done (not in C anyway).
void myfunction (char* param1, char* param2, char* manyparams, ....) {
...some...stuff
otherfunction(someparam, manyparams);
} //note this is psuedocde.
where otherfunction is declared (by someone else) as -
otherfunction(sometype* someparam, char* manyparams, .....)