Re: malloc problem



On 31 Mar 2005 18:04:52 GMT, in comp.lang.c , mwojcik@xxxxxxxxxxx
(Michael Wojcik) wrote:

>That's not how I read 9899-1990 5.1.2.2.1:
>
> int main(void) { /*...*/ }

this is totally equivalent to
int main() {/*...*/}

in a function definition.

>6.7.1 certainly makes the parameter list optional in general, but
>ISTM that a conforming implementation could require one of the two
>forms for main described in 5.1.2.2.1. I don't see anything that
>requires an implementation to accept "int main()".

The grammar of the language requires it.

--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.ungerhu.com/jxh/clc.welcome.txt>
.