Mail Archives: djgpp/1996/09/05/17:46:01
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 -