Date: Tue, 25 Jun 1996 19:29:16 +0800 (GMT) From: Orlando Andico To: Tom Wheeley cc: djgpp AT delorie DOT com Subject: Re: Does DJGPP conform to ANSI-C standards with the for () ? In-Reply-To: <835650546snz@tsys.demon.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 24 Jun 1996, Tom Wheeley wrote: > > This is not valid C code for at least several reasons: > > > > 1) main must return int. void is not acceptable. > > True > > > 2) main must take either void parameters or an int and a char **. > > an undefined param list is not acceptable. > > Are you sure? I was under the impression that it was allowed by the ANSI > standard due to the large amount of code which would become undefined. > Thus the smallest strictly conforming program is > > main(){} Nope. A function without a declared return type is assumed to return 'int'