Date: Sun, 4 Jun 2000 17:48:38 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Laurynas Biveinis cc: djgpp-workers AT delorie DOT com Subject: Re: ANSI C and stdio.h In-Reply-To: <39394EC9.91B87484@softhome.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sat, 3 Jun 2000, Laurynas Biveinis wrote: > #include > #include > int vfprintf(..., va_list args); > > Note that stdarg.h should be included as well. Why? Because that's where va_list is supposed to be defined. > I found FreeBSD definition by accident in gcc mail archives: > > int vfprintf __P((FILE *, const char *, _BSD_VA_LIST_)); > int vprintf __P((const char *, _BSD_VA_LIST_)); > ... > > with _BSD_VA_LIST_ declared in /usr/include/machine/ansi.h as: > > #define _BSD_VA_LIST_ char * And where do they make the link to va_list?