[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: main()
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 20 May 2005 09:48:38 -0300
> lua.c has changed the prototype for main from/to
>
> <! int main (int argc, char *argv[]) { //5.0
> !> int main (int argc, char **argv) { //5.1
>
> I am curious. Can someone explain the pros/cons of these
> two. I have been using the 5.0 form for as long as I can remember.
As far as I know there is no difference at all. According to ISO,
the first format is converted to the second:
(ISO/IEC 9899:1999, 6.7.5.3)
A declaration of a parameter as "array of type" shall be adjusted to
"qualified pointer to type", [...]
-- Roberto