Mail Archives: djgpp/1997/06/13/10:12:21
At 19:21 12/06/97 +0000, John M. Aldrich wrote:
>ANSI correct definition of main(). I believe that K&R (the definitive
>work on C) also uses the correct definition. Some authors (okay, many
Unfortunately more or less, 'though in the pages 26 and 164 of their 2nd Ed,
there is a discussion on main returning int and ist use by the host OS, the
examples thorough the book use main without explicit return type (which
before I get a lot o BW on this on my account, I know that C defaults the
return type of functions to int!). But surely never used the void main thing.
Oddly enough, I've seen this construct more heavily used in Microsoft
examples, I wonder how can if their make OSs, but that's another story...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Cesar Scarpini Rabak E-mail: csrabak AT ipt DOT br
DME/ASC Phone: 55-11-268-3522 Ext.350
IPT - Instituto de Pesquisas Tecnologicas Fax: 55-11-268-5996
Av. Prof. Almeida Prado, 532. Sao Paulo - SP 05508-901 BRAZIL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Raw text -