From mboxrd@z Thu Jan 1 00:00:00 1970 From: andrey mirtchovski Subject: Re: [9fans] the declaration of main() To: 9fans@cse.psu.edu Message-id: <3AD54A6B.51AA3EAA@mail.usask.ca> MIME-version: 1.0 Content-type: text/plain; charset=windows-1251 Content-transfer-encoding: 7BIT References: <10991.987056527@beat.cc.titech.ac.jp> Date: Thu, 12 Apr 2001 00:25:47 -0600 Topicbox-Message-UUID: 816df526-eac9-11e9-9e20-41e7f4b1d025 http://plan9.bell-labs.com/sys/doc/comp.html to quote (before someone else does it :) : In Plan 9 main is not integer-valued; it should call exits, which takes a string argument (or null; here ANSI C promotes the 0 to a char*). All these functions are, of course, documented in the Programmer's Manual. andrey YAMANASHI Takeshi wrote: > A number of Plan 9 commands declare their main() as > `void main(int argc, **argv)'. How should I understand > this? > > I believed that main() should be declared returning a int. > Please comfort me saying that this is pretty well with the > Plan 9 C compilers. >