Path: utzoo!attcan!uunet!steinmetz!davidsen From: davidsen@steinmetz.ge.com (William E. Davidsen Jr) Newsgroups: comp.unix.xenix Subject: Re: SCO XENIX bug prevents smail from working correctly. Message-ID: <12994@steinmetz.ge.com> Date: 19 Jan 89 19:05:48 GMT References: <31@elgar.UUCP> Reply-To: davidsen@crdos1.UUCP (bill davidsen) Organization: General Electric CRD, Schenectady, NY Lines: 14 In article <31@elgar.UUCP> ag@elgar.UUCP (Keith Gabryelski) writes: | | The SCO XENIX C compiler (mine is version 2.2) does not handle a | return from main() correctly. A return from main should be the same | as an exit from main. It isn't. There was a discussion of this in one of the C groups, and my recollection of the result was that this is the way C works. When you exit(status) the result is defined, and if you return(status) it isn't always the same. -- bill davidsen (wedu@ge-crd.arpa) {uunet | philabs}!steinmetz!crdos1!davidsen "Stupidity, like virtue, is its own reward" -me