This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: va_list bug?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]