🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1848

Re: prototypes required ?

#1848
From: Christopher-Vance
Date: Wed, 17 Oct 1990 23:26
6 lines
896 bytes
gwyn@smoke.BRL.MIL (Doug Gwyn) writes:
| Yes, you definitely must have a prototype in scope before calling a
| variable-argument function in a strictly conforming program.

Which means that gcc -ansi on a Pyramid cannot compile such a thing. I am
informed that the only way to make printf work is to *omit* the prototype.
Technical Details
Message-ID: <1964@ccadfa.adfa.oz.au>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!samsung!munnari.oz.au!csc.anu.oz.au!csc3.anu.oz.au!ccadfa!Christopher-Vance@adfa.oz.au
References: <4026@otis.oakhill.UUCP> <14164@smoke.BRL.MIL>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!samsung!munnari.oz.au!csc.anu.oz.au!csc3.anu.oz.au!ccadfa!Christopher-Vance@adfa.oz.au
From: Christopher-Vance@adfa.oz.au
Newsgroups: comp.std.c,gnu.gcc.help
Subject: Re: prototypes required ?
Keywords: printf stdargs prototypes
Message-ID: <1964@ccadfa.adfa.oz.au>
Date: 17 Oct 90 23:26:26 GMT
References: <4026@otis.oakhill.UUCP> <14164@smoke.BRL.MIL>
Sender: cjsv@ccadfa.adfa.oz.au
Organization: Computer Science, University of New South Wales, ADFA, Canberra, AUSTRALIA
Lines: 6