Is it possible to change argv or do I need to create an adjusted copy of it?

The C99 standard says this about modifying argv (and argc):

The parameters argc and argv and the strings pointed to by the argv array shall be modifiable by the program, and retain their last-stored values between program startup and program termination.

Leave a Comment