🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1855

Re: prototypes required ?

#1855
From: Doug Gwyn
Date: Thu, 18 Oct 1990 16:52
11 lines
1092 bytes
In article <PDS.90Oct17103016@lemming.webo.dg.com> pds@lemming.webo.dg.com (Paul D. Smith) writes:
>I see no reason you could just not prototype anything, however:
>    int printf();
>This should cause no problems.

No, that's wrong.  As point of contact when the <stdarg.h> macros were
being worked out, I received many examples of implementations where
such a declaration would result in the wrong code being generated for
linkage to a variable-argument function.  This is reflected in the
requirements for strict program conformance in the C standard; the
above declaration is not strictly conforming, and it does matter.
Technical Details
Message-ID: <14183@smoke.BRL.MIL>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!sdd.hp.com!uakari.primate.wisc.edu!uflorida!haven!adm!smoke!gwyn
References: <4026@otis.oakhill.UUCP> <PDS.90Oct17103016@lemming.webo.dg.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!sdd.hp.com!uakari.primate.wisc.edu!uflorida!haven!adm!smoke!gwyn
From: gwyn@smoke.BRL.MIL (Doug Gwyn)
Newsgroups: comp.std.c
Subject: Re: prototypes required ?
Message-ID: <14183@smoke.BRL.MIL>
Date: 18 Oct 90 16:52:14 GMT
References: <4026@otis.oakhill.UUCP> <PDS.90Oct17103016@lemming.webo.dg.com>
Organization: U.S. Army Ballistic Research Laboratory, APG, MD.
Lines: 11