Path: utzoo!mnetor!uunet!husc6!think!ames!hao!boulder!tramp!swarbric From: swarbric@tramp.Colorado.EDU (SWARBRICK FRANCIS JOHN) Newsgroups: comp.lang.c Subject: Re: return vs exit() [was Re: exit(main(argc,argv,env));] Message-ID: <3598@sigi.Colorado.EDU> Date: 22 Dec 87 21:58:42 GMT References: <10875@brl-adm.ARPA> <176@fxgrp.UUCP> <1286@laidbak.UUCP> <1293@laidbak.UUCP> Sender: news@sigi.Colorado.EDU Reply-To: swarbric@tramp.Colorado.EDU (SWARBRICK FRANCIS JOHN) Organization: University of Colorado, Boulder Lines: 8 They're saying that return is the same as exit() WHILE IN main()! What exit() actually does is drops out of the WHOLE PROGRAM, while return just drops out of the current function. Dropping out of main() is (usually) equivalant to dropping out of the whole program. Frank Swarbrick swarbric@tramp.Colorado.EDU ...!hao!boulder!tramp!swarbric