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:[EMAIL PROTECTED] CollabNet ( http://collab.net ) -- You want my advice? Go back to Bulgaria. - Humphrey Bogart as Rick, _Casablanca_ _______________________________________________ Bug-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-cvs
