delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/06/04/10:50:04

Date: Sun, 4 Jun 2000 17:48:38 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Laurynas Biveinis <lauras AT softhome DOT net>
cc: djgpp-workers AT delorie DOT com
Subject: Re: ANSI C and stdio.h
In-Reply-To: <39394EC9.91B87484@softhome.net>
Message-ID: <Pine.SUN.3.91.1000604174725.11052F-100000@is>
MIME-Version: 1.0
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

On Sat, 3 Jun 2000, Laurynas Biveinis wrote:

> #include <stdarg.h>
> #include <stdio.h>
> 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?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019