Re: malloc problem
- From: Mark McIntyre <markmcintyre@xxxxxxxxxxx>
- Date: Fri, 01 Apr 2005 01:07:29 +0100
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>
.
- Follow-Ups:
- Re: malloc problem
- From: Michael Wojcik
- Re: malloc problem
- From: Keith Thompson
- Re: malloc problem
- References:
- Re: malloc problem
- From: Michael Wojcik
- Re: malloc problem
- From: Richard Bos
- Re: malloc problem
- From: Michael Wojcik
- Re: malloc problem
- Prev by Date: Re: need help..
- Next by Date: Re: type of array index?
- Previous by thread: Re: malloc problem
- Next by thread: Re: malloc problem
- Index(es):