www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/05/17:46:01

Xref: news2.mv.net comp.os.msdos.djgpp:8319
From: korpela AT islay DOT ssl DOT berkeley DOT edu (Eric J. Korpela)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: HELP MEEEEEE!!!!
Date: 5 Sep 1996 18:30:58 GMT
Organization: Cal Berkeley-- Space Sciences Lab
Lines: 19
Message-ID: <50n692$abj@agate.berkeley.edu>
References: <9609041643 DOT aa11427 AT ailin DOT inti DOT edu DOT ar>
NNTP-Posting-Host: islay.ssl.berkeley.edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <9609041643 DOT aa11427 AT ailin DOT inti DOT edu DOT ar>,
Salvador Eduardo Tropea (SET) <salvador AT inti DOT edu DOT ar> wrote:

> I don't want another war of main style declarations, but ... the void main() 
>is very suitable for some platform like a microcontroller, if you put int 
>main() in a microcontroller what's the use of the return value!!!, and you'll 
>save some space.

1.  Microcontrollers rarely have a main() as defined by the C standard.
2.  If they do, it is unlikely to return or exit.
3.  In any case, if there is a main() function, it is required by the
    C standard to be declared as int.

Eric
-- 
Eric Korpela                        |  An object at rest can never be
korpela AT ssl DOT berkeley DOT edu            |  stopped.
<a href="http://www.cs.indiana.edu/finger/mofo.ssl.berkeley.edu/korpela/w">
Click here for more info.</a>

- Raw text -


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