bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] NULL-terminate list of arguments in server-mode


From: Derek R. Price
Subject: Re: [PATCH] NULL-terminate list of arguments in server-mode
Date: Mon, 01 Oct 2001 15:51:20 -0400

Larry Jones wrote:

> Derek R. Price writes:
> >
> > Is this really traditional?  I've never seen it in over 10 years of C
> > programming.  Can you point me at the appropriate standard?
>
> It's standard for the arguments to main -- according to the ISO C
> standard (ISO/IEC 9899:1999) 5.1.2.2.1 Program startup:
>
>         If they are declared, the parameters to the main function shall
>         obey the following constraints:
>
>         - The value of argc shall be nonnegative.
>
>         - argv[argc] shall be a null pointer.
>
>         ...

Well, the change doesn't really bother me then, though it probably
deserves a comment to the effect that we are imitating the ISO standard if
the change is going to be made.  Hopefully that way future code readers
won't be baffled and perhaps register consistency complaints.

Alexey can commit it with the aforementioned comment as soon as he lets me
know he registered on cvshome.org so I can grant his developer status,
assuming noone wants to raise efficiency/consistency issues.

Derek

--
Derek Price                      CVS Solutions Architect ( http://CVSHome.org )
mailto:dprice@collab.net         CollabNet ( http://collab.net )
--
You want my advice?  Go back to Bulgaria.

                - Humphrey Bogart as Rick, _Casablanca_






reply via email to

[Prev in Thread] Current Thread [Next in Thread]