This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH] argv needs to be writable


On Wed, 14 Jun 2000, Zack Weinberg wrote:

> Hm, thinking about it a bit more, is there any advantage to having
> argv be const char ** (or const char *const *)?  Or to having it not
> be?

Come to think of it, is a program that uses "const char**" as the second
argument for main() valid? Sure, it will work with every compiler and
machine I've seen, but is it actually a valid ISO C code?

-- 
/ Kamil Iskra  kamil@wins.uva.nl                                          \
| Section Computational Science, Faculty FNWI, Universiteit van Amsterdam |
| tel. +31 20 525 75 35  fax. +31 20 525 74 90                            |
\ Kruislaan 403  room F.202  1098 SJ Amsterdam (NL)                       /


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]