typedef-ing an array
Kevin D. Quitt
kdq at demott.COM
Wed Jul 4 05:00:58 AEST 1990
In article <12433 at sun.udel.edu> toor at sun.udel.edu (Kartik S Subbarao) writes:
>In article <25247 at mimsy.umd.edu> chris at mimsy.umd.edu (Chris Torek) writes:
>>In article <78633 at srcsip.UUCP> pclark at SRC.Honeywell.COM (Peter Clark) writes:
>
...
>>
>>The first error is `void main': it must (yes must) be `int main', even
>>if it never returns. It may have either 0 arguments or two (int argc,
>>char *argv).
>
>(yes must)??!?!?!?!?! I beg to differ.
(examples deleted)
>So you CAN have a) void main if you desire,
> b) only one argument to main.
Should be int, (obviously not "must"). A void main returns garbage to
the shell, which is unfriendly.
--
_
Kevin D. Quitt demott!kdq kdq at demott.com
DeMott Electronics Co. 14707 Keswick St. Van Nuys, CA 91405-1266
VOICE (818) 988-4975 FAX (818) 997-1190 MODEM (818) 997-4496 PEP last
96.37% of all statistics are made up.
More information about the Comp.lang.c
mailing list