va_list bug?

Andrew Pinski pinskia@gmail.com
Wed Mar 19 03:59:00 GMT 2008


On Tue, Mar 18, 2008 at 5:59 PM, Peter A. Felvegi
<petschy@praire-chicken.com> wrote:
> hello,

>  void vp(const char* fmt, va_list args)
>  {
>         vprintf(fmt, args);
>         vprintf(fmt, args);
>  }

You need va_copy there.  Yes that is C99 only but it is required still.

-- Pinski



More information about the Gcc mailing list