Mail Archives: djgpp/1998/06/02/08:15:37
John M. Aldrich <fighteer AT cs DOT com> wrote:
>BTW, your test program has some significant flaws. First, main() must
>return an integer according to the ANSI standard.
I agree, this is something a lot of people don't seem to realise, not that
I think it matters too much as long as people:
a) realise it technically isn't ANSI-compliant
b) don't try to get main() to return something!
> Second, library
>functions like printf() must be prototyped by including the appropriate
>standard header file, in this case stdio.h.
I'm not sure about this. I was under the impression that function
prototypes are not strictly required by ANSI. Of course it's better to have
them so as to have better compile-time checking of function arguments, but I
didn't think it was strictly compulsory.
--
loki
loki (at) nectar.com.au http://puck.nether.net/~loki/
# Dare I disturb the universe? You bet I do!
- Raw text -