prototype my function, please
Lars Henrik Mathiesen
thorinn at skinfaxe.diku.dk
Mon Jun 11 22:31:22 AEST 1990
cknight at polyslo.CalPoly.EDU (King Claudius) writes:
>An easier way to do this is to declare main as returning void...
>void main (void) {...}
Yeah, and if a int-declared main expects a space to be left on the
stack for its return value, and a void-declared doesn't? Funny
core-dump time. The main function has a defined interface to the
runtime system, and you deviate from it at your peril. It may not
matter in _this_ release of _your_ compiler on _your_ operating
system, but ...
--
Lars Mathiesen, DIKU, U of Copenhagen, Denmark [uunet!]mcsun!diku!thorinn
Institute of Datalogy -- we're scientists, not engineers. thorinn at diku.dk
More information about the Comp.lang.c
mailing list