title: C++ Copy and modify argv[]
body: <p>How could I copy argv vector into a new one in order to modify it and then pass new arguments to a function? Sorry if it's a basic stuff, I am not a C++ programmer.</p>
  
  <pre><code>int main(int argc, char *argv[])
  {
      parseCommandLine(argc, argv);
  </code></pre>
  
  <p>and would like to:</p>
  
  <pre><code>int main(int argc, char *argv[])
  {
      //Here copy argv[] to argv2[] and modify argv2[0]
  
      parseCommandLine(argc, argv2);
  </code></pre>