Path: utzoo!mnetor!uunet!husc6!hao!oddjob!gargoyle!ihnp4!laidbak!daveb From: daveb@laidbak.UUCP (Dave Burton) Newsgroups: comp.lang.c Subject: Re: return vs exit() [was Re: exit(main(argc,argv,env));] Message-ID: <1295@laidbak.UUCP> Date: 22 Dec 87 20:50:37 GMT References: <10875@brl-adm.ARPA> <176@fxgrp.UUCP> <1286@laidbak.UUCP> <1293@laidbak.UUCP> <20664@yale-celray.yale.UUCP> Reply-To: daveb@laidbak.UUCP (Dave Burton) Organization: is pretty bad/My method of Lines: 22 In article <20664@yale-celray.yale.UUCP> moran@yale-zoo-suned.UUCP (William L. Moran Jr.) writes: >In article <1293@laidbak.UUCP> daveb@laidbak.UUCP (Dave Burton) writes: >>If so, why is there an exit() function call, since >> the semantics are the same? >I hate to make a silly observation like this, but return and exit >aren't the same (they don't have the same semantics) except perhaps >when used in main. Unless I am mistaken, exit() will leave from Red-faced, he sends a Cancel out. (Please Cancel - catch them quick!) You're not mistaken. The question was absurd! I promise I won't do it again. I hope. -- --------------------"Well, it looked good when I wrote it"--------------------- Verbal: Dave Burton Net: ...!ihnp4!laidbak!daveb V-MAIL: (312) 505-9100 x325 USSnail: 1901 N. Naper Blvd. #include Naperville, IL 60540