[KLUG Programming] Passing on variable argument lists.
Robert G. Brown
programming@kalamazoolinux.org
Sun, 08 Feb 2004 21:11:50 -0500
Must you use vsprint in your app??
On Sun, 08 Feb 2004 20:28:47 -0500, Adam Williams <awilliam@whitemice.org> wrote:
>> 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.
>
>_______________________________________________
>Programming mailing list
>Programming@kalamazoolinux.org
>http://www.kalamazoolinux.org/mailman/listinfo/programming