Path: utzoo!utgpu!water!watmath!clyde!rutgers!ll-xn!husc6!cmcl2!brl-adm!brl-smoke!gwyn
From: gwyn@brl-smoke.ARPA (Doug Gwyn )
Newsgroups: comp.lang.c
Subject: Re: exit(main(argc,argv,env));
Message-ID: <6851@brl-smoke.ARPA>
Date: 16 Dec 87 20:55:01 GMT
References: <10875@brl-adm.ARPA>
Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) )
Organization: Ballistic Research Lab (BRL), APG, MD.
Lines: 10

In article <10875@brl-adm.ARPA> ADLER1%BRANDEIS.BITNET@CUNYVM.CUNY.EDU writes:
>exit(main(argc,argv,env));
>which I find puzzling. I thought that one was supposed to give exit a
>number for an argument.

exit() takes an int argument; main() returns an int value.
What don't you understand?

By the way, the "env" parameter is nonstandard, although it
doesn't matter on some architectures.