Path: utzoo!attcan!uunet!husc6!bloom-beacon!tut.cis.ohio-state.edu!osu-cis!att!ulysses!andante!alice!debra From: debra@alice.UUCP (Paul De Bra) Newsgroups: comp.unix.xenix Subject: Re: Xenix 386 v2.3 bug? Keywords: Xenix,Unix,80386 Message-ID: <8411@alice.UUCP> Date: 10 Nov 88 17:26:03 GMT References: <40@maxx.UUCP> Reply-To: debra@alice.UUCP () Organization: AT&T, Bell Labs Lines: 17 In article <40@maxx.UUCP> tyager@maxx.UUCP (Tom Yager) writes: >... >2. return(value) from main() doesn't work the same as exit(value) According to the new K&R book return and exit should be equivalent in ANSI C. However, I don't think this used to be the case before. return is a C statement which causes main to return a value to its caller, and this may prevent some necessary cleanup in older implementations. exit is a library function which does the necessary cleanup and then terminates the process. Paul. -- ------------------------------------------------------ |debra@research.att.com | uunet!research!debra | ------------------------------------------------------