Path: utzoo!mnetor!uunet!ndsuvax!ncbauers From: ncbauers@ndsuvax.UUCP (Michael Bauers) Newsgroups: comp.lang.c Subject: Re: exit(main(argc,argv,env)); Message-ID: <577@ndsuvax.UUCP> Date: 17 Dec 87 02:32:29 GMT References: <10875@brl-adm.ARPA> Reply-To: ncbauers@ndsuvax.UUCP (Michael Bauers) Organization: North Dakota State University Fargo, ND Lines: 12 In article <10875@brl-adm.ARPA> ADLER1%BRANDEIS.BITNET@CUNYVM.CUNY.EDU writes: >I was looking through the file crt0.c in the GNU emacs source code and >found the command >exit(main(argc,argv,env)); >which I find puzzling. I thought that one was supposed to give exit a >number for an argument. What does the above command do and why would >anyone want to do it that way ? Well I have never seen syntax like this...but it should just recur- sively call main. I assume you know what argc, argv, and env are. Main would be in big trouble if it did not have a normal exit statement which presumably is of the form exit(n).