delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/13/10:12:21

Message-Id: <1.5.4.32.19970613140629.0068bbf0@dce03.ipt.br>
Mime-Version: 1.0
Date: Fri, 13 Jun 1997 11:06:29 -0300
To: fighteer AT cs DOT com, Robert Humphris <r DOT humphris AT indigo-avs DOT com>
From: Cesar Scarpini Rabak <csrabak AT dce03 DOT ipt DOT br>
Subject: Re: newbie question
Cc: "'djgpp AT delorie DOT com'" <djgpp AT delorie DOT com>

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019