Xref: utzoo comp.std.c:4312 comp.sys.amiga.programmer:805 Path: 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 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.