From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] the declaration of main() From: okamoto@granite.cias.osakafu-u.ac.jp MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-kydzfnkxgyeooehbgvkwxbeqdx" Message-Id: <20010424005944.4277619A04@mail.cse.psu.edu> Date: Tue, 24 Apr 2001 09:59:24 +0900 Topicbox-Message-UUID: 8cc35b5a-eac9-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-kydzfnkxgyeooehbgvkwxbeqdx Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit >okamoto@granite.cias.osakafu-u.ac.jp wrote: >> I wonder why C99 employed that int main(), > >Existing practice, tracable back to UNIX. I should have asked why C99 employed _fixed_ definition as the main()'s return value to INT only. I don't understand it, if the answer is "practice". Kenji --upas-kydzfnkxgyeooehbgvkwxbeqdx Content-Type: message/rfc822 Content-Disposition: inline Received: from granite.cias.osakafu-u.ac.jp ([192.168.1.3]) by diabase; Mon Apr 23 17:56:03 JST 2001 Received: from elmo.cias.osakafu-u.ac.jp (elmo.cias.osakafu-u.ac.jp [157.16.103.2]) by granite.cias.osakafu-u.ac.jp (8.9.3/8.9.3) with ESMTP id RAA10601; Mon, 23 Apr 2001 17:58:50 +0900 Received: from mail.cse.psu.edu (postfix@psuvax1.cse.psu.edu [130.203.4.6]) by elmo.cias.osakafu-u.ac.jp (8.9.3/3.7W-01040211) with ESMTP id RAA08967; Mon, 23 Apr 2001 17:59:02 +0900 (JST) Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.8.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 2DF3719AA6; Mon, 23 Apr 2001 04:55:46 -0400 (EDT) Received: from mercury.bath.ac.uk (mercury.bath.ac.uk [138.38.32.81]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 14C0119A29 for <9fans@cse.psu.edu>; Mon, 23 Apr 2001 04:53:28 -0400 (EDT) Received: from news by mercury.bath.ac.uk with local (Exim 3.12 #1) id 14rbyp-0003WP-00 for 9fans@cse.psu.edu; Mon, 23 Apr 2001 09:45:59 +0100 Received: from GATEWAY by bath.ac.uk with netnews for 9fans@cse.psu.edu (9fans@cse.psu.edu) To: 9fans@cse.psu.edu From: "Douglas A. Gwyn" Message-ID: <3AD61574.8E819DA9@arl.army.mil> Organization: U.S. Army Research Laboratory Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: <20010412062827.2E4F919A17@mail.cse.psu.edu> Subject: Re: [9fans] the declaration of main() Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Mon, 23 Apr 2001 08:44:09 GMT okamoto@granite.cias.osakafu-u.ac.jp wrote: > I wonder why C99 employed that int main(), Existing practice, tracable back to UNIX. The previous response was incomplete; int-valued main is apparently supported per the C standard if the pcc (POSIX) compilation environment is used instead of the native Plan 9 environment. --upas-kydzfnkxgyeooehbgvkwxbeqdx--