[KLUG Programming] Passing on variable argument lists.

Adam Williams programming@kalamazoolinux.org
Sun, 08 Feb 2004 20:28:47 -0500


> I found examples like -
> #include <stdarg.h>
> #include <stdio.h>
> int  mysprintf (char* dest, char* source,...){
>     va_list vlist;
>     va_start(vlist,source);
>     vsprintf(dest,"%s",vlist);
> }
> - which seems like exactly what I want to do.

Okay, overlooked this "Notice that vfprintf does not accept a variable
number of arguments; it accepts exactly three arguments, the third of
which is essentially a "pointer" to the extra arguments it will need."

So I think i'm just screwed as far as this goes.