This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: va_list bug?
- From: "Andrew Pinski" <pinskia at gmail dot com>
- To: "Peter A. Felvegi" <petschy at praire-chicken dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 18 Mar 2008 18:40:02 -0700
- Subject: Re: va_list bug?
- References: <47E06558.7050602@praire-chicken.com>
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