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

Message-ID: <c=GB%a=_%p=Indigo_Active_Vi%l=CRIANLARICH-970612161703Z-172@crianlarich.Indigo>
From: Robert Humphris <r DOT humphris AT indigo-avs DOT com>
To: "'djgpp AT delorie DOT com'" <djgpp AT delorie DOT com>,
"'fighteer AT cs DOT com'"
<fighteer AT cs DOT com>
Subject: RE: newbie question
Date: Thu, 12 Jun 1997 17:17:03 +0100
Encoding: 20 TEXT

<Snip>
> 
>> math.c: in funtion 'main':
>> match.c:2: warning: return type of 'main' is not 'int'
>
>I would think this one would be obvious.  Your C book is idiotic; valid
>C or C++ code must define main with an integer return type.  For the
>reasons why, check out the comp.lang.c Frequently Asked Questions at

Man, virtually every book that I have ever read on 'how to program
C/C++' has used
void main() in its code... the fact that most commercial DOS compilers
seem to accept it
without complaint seems to me that its a DOS thing this void main().
DJGPP is ported
from one of the better operating systems ( NOTE: I said better, not best
) where the value
that a process returns is often important.

Rob Humphris

- Raw text -


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