Article View: comp.sys.amiga.tech
Article #13744Re: Manx 5.0 bug -- response from Manx
From: Bob Luneski
Date: Fri, 16 Feb 1990 23:10
Date: Fri, 16 Feb 1990 23:10
19 lines
1347 bytes
1347 bytes
barrett@jhunix.HCF.JHU.EDU (Dan Barrett) writes:
> I informed Mike Spille of Manx about the bug I mentioned in this
>group (getchar() at EOF causes the operating system to say "cannot load
>file"). Indeed, _main() is returning -1 to the operating system, causing
>this error. The workaround is to explicit return(0) or exit(0) in your
>main().
> Yecch.
It is never a good idea to assume something will be done for you. By
explicitly specifying your exit condition the "work around" is just good
programming practice.
____________________________________________________________________________
Bob Luneski
The opinions expressed herein are my own and in no way reflect the
opinions of Tektronix, Inc.
Technical Details
Message-ID:
<8563@pogo.WV.TEK.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!rice!uw-beaver!zephyr.ens.tek.com!orca.wv.tek.com!pogo!bluneskiShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!rice!uw-beaver!zephyr.ens.tek.com!orca.wv.tek.com!pogo!bluneski From: bluneski@pogo.WV.TEK.COM (Bob Luneski) Newsgroups: comp.sys.amiga.tech Subject: Re: Manx 5.0 bug -- response from Manx Message-ID: <8563@pogo.WV.TEK.COM> Date: 16 Feb 90 23:10:28 GMT Reply-To: bluneski@pogo.WV.TEK.COM (Bob Luneski) Organization: Tektronix, Inc., Wilsonville, OR. Lines: 19