title: Execv with arguments starting from second element
body: <p>I am making a program that can take another program as an argument and run it.</p>
  <p>I am using <code>execv()</code> to run the second program, but how can I use <code>argv[]</code> (that comes from the main program, is a <code>char*</code>) as arguments for <code>execv()</code>?</p>
  <p>The first element of <code>argv[]</code> is the name of the main program, so I need to start at the second element where the name of the next program is located.</p>
  <p>I am thinking there might be different solutions, for example:</p>
  <ul>
  <li>Tell <code>execv()</code> to start from the second argument</li>
  <li>copy the content of <code>argv[] </code>(except first element) to another array and use that</li>
  <li>Something with pointers so maybe I can point to the second element and start there</li>
  </ul>
  <p>What is the best way to do this?
  And can I get an example of how to do it?</p>