🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2412

Re: ANSI prototypes, the right choice...

#2412
From: Sean Eric Fagan
Date: Tue, 12 Feb 1991 03:14
23 lines
1248 bytes
In article <2941@cirrusl.UUCP> dhesi%cirrusl@oliveb.ATC.olivetti.com (Rahul Dhesi) writes:
>     int myfunc PARAMS((int i, char *p));
>     int myfunc (i, p)
>     int i;
>     char *p;
>     {...}

>What's good about this style is:  (a) It is compatible with both ANSI
>and non-ANSI C environments;

And

	myfunc (PARAMS((char c, float f));
	myfunc (c,f) char c; float f; {}

is *not* right, it is a syntax error, as much as declaring myfunc to be a
float the second time is.

-- 
Sean Eric Fagan  | "I made the universe, but please don't blame me for it;
sef@kithrup.COM  |  I had a bellyache at the time."
-----------------+           -- The Turtle (Stephen King, _It_)
Any opinions expressed are my own, and generally unpopular with others.
Technical Details
Message-ID: <1991Feb12.031413.7338@kithrup.COM>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!nic.csu.net!csun!kithrup!sef
References: <15089@smoke.brl.mil> <1991Feb9.075215.26939@athena.mit.edu> <2941@cirrusl.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!nic.csu.net!csun!kithrup!sef
From: sef@kithrup.COM (Sean Eric Fagan)
Newsgroups: comp.std.c,comp.sys.amiga.programmer
Subject: Re: ANSI prototypes, the right choice...
Message-ID: <1991Feb12.031413.7338@kithrup.COM>
Date: 12 Feb 91 03:14:13 GMT
References: <15089@smoke.brl.mil> <1991Feb9.075215.26939@athena.mit.edu> <2941@cirrusl.UUCP>
Organization: Kithrup Enterprises, Ltd.
Lines: 23