🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #13744

Re: Manx 5.0 bug -- response from Manx

#13744
From: Bob Luneski
Date: Fri, 16 Feb 1990 23:10
19 lines
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!bluneski

Show 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