title: copying elements of argv into a new array
body: <p>I am trying to make a new copy of argv and and then pass it to the python  PySys_SetArgv where i get an error :</p>
  
  <p>My argv arguments are : </p>
  
  <pre><code>./matrix -r 2 -c 2 -MIN 0 -MID 10 -UPPER 50 -MAX 100
  </code></pre>
  
  <p>I want to make a new copy of argv called argv_new which contains arguments starting from -MIN and ending at 100. I accomplish this as follows : </p>
  
  <pre><code>char argv_new[argc-4][6];
  strcpy(argv_new[0],argv[0]);
  cout &lt;&lt; argv_new[0] &lt;&lt; "\n";    
  for(int j=5; j&lt;argc; j++)
  {
      strcpy(argv_new[j-4],argv[j]);
      cout &lt;&lt; argv_new[j-4] &lt;&lt; "\n";
  
  }
  </code></pre>
  
  <p>My output is as follows :</p>
  
  <pre><code>./matrix
  -MIN
  0
  -MID
  10
  -UPPER
  50
  -MAX
  100
  </code></pre>
  
  <p>Next i try to pass this <code>argv_new</code> into <code>PySys_SetArgv as PySys_SetArgv(argc - 4, argv_new)</code> to set the argv to be passed to python. However i get the following error :</p>
  
  <p>cannot convert <code>‘char (*)[6]’ to ‘char**’ for argument ‘2’ to ‘void PySys_SetArgv(int, char**)’</code></p>
  
  <p>I am not sure how to fix this error. Any help will be appreciated.</p>