Article View: gnu.gcc.help
Article #51921Re: gcc and function prototyping with varargs
From: Marek MAKOWSKI
Date: Wed, 10 Mar 1993 10:02
Date: Wed, 10 Mar 1993 10:02
21 lines
1337 bytes
1337 bytes
Dr. Charles Bachmann (bachmann@radar.nrl.navy.mil) wrote:
:
: I have a question about the gcc compiler. Is there a convenient way
: to do function prototyping for functions with variable argument lists,
: in such a way that the gcc compiler doesn't fail? Many thanks in
: advance.
:
:
Yes, try something like this:
extern void CDECL error(char *, ...);
CDECL is an empty string for gcc, arguments for this function are like
for printf().
Good luck,
Marek Makowski
--
Marek Makowski | Email: marek@iiasa.ac.at
International Institute | Phone: +43 02236 71.5210
for Applied System Analysis | Fax: +43 02236 71.313
A-2361 Laxenburg, Austria | Telex: 079137 iiasa a
Technical Details
Message-ID:
<1993Mar10.100225.5882@iiasa.ac.at>Path:
arc1-ca.pugleaf.net!sparky!uunet!news.univie.ac.at!iiasa.ac.at!marekReferences:
<9303082118.AA05989@radar.nrl.navy.mil>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,275ad8b1e6f02e3d X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-03-10 05:03:11 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!news.univie.ac.at!iiasa.ac.at!marek From: marek@iiasa.ac.at (Marek MAKOWSKI) Subject: Re: gcc and function prototyping with varargs Message-ID: <1993Mar10.100225.5882@iiasa.ac.at> Organization: IIASA, Laxenburg, Austria X-Newsreader: TIN [version 1.1 PL6] References: <9303082118.AA05989@radar.nrl.navy.mil> Distribution: gnu Date: Wed, 10 Mar 1993 10:02:25 GMT Lines: 21