Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!rutgers!netsys!lll-winken!snll-arpagw!paolucci From: paolucci@snll-arpagw.UUCP (Sam Paolucci) Newsgroups: comp.sys.amiga.tech Subject: Re: Any good makes out there? Message-ID: <57@snll-arpagw.UUCP> Date: 24 Feb 89 04:16:03 GMT References: <8902120648.AA14117@postgres.Berkeley.EDU> <97@ssibbs.UUCP> Reply-To: paolucci@snll-arpagw.UUCP (Sam Paolucci) Organization: Sandia National Labs, Livermore, CA Lines: 26 In article <97@ssibbs.UUCP> jac@ssibbs.UUCP (James Crotinger) writes: -> A couple of the books I have, one on ANSI C, state that returning a value ->from main should be identical to calling exit(). In fact, they say it is ->perfectly allowable for the startup code to execute main() with the following ->call: -> -> exit(main(argc,argv)); -> -> In this respect, Lattice is in error since it prototypes main as being ->type void, where all the books I've seen (ANSI books) say main should have ->type int. I called Lattice about 3 days ago about a bunch of non ANSI stuff in their "ANSI" compiler, and I forgot to mention them exactly the above. You are correct and Lattice is wrong on this point. I suggest you discuss this with their tech support (or I will). -> Jim Crotinger -> crotinger%mit.mfenet@nmfecc.arpa -- -+= SAM =+- "the best things in life are free" ARPA: paolucci@snll-arpagw.llnl.gov