title: C - How to copy part of an array of string into another?
body: <p>Is there a simple and elegant way to split an array from an index?</p>
  <p>In my program I am getting a array of strings (argv), and I want to ignore the program name and some of its arguments, copying the rest in an array.</p>
  <p>For example, the content of <code>argv</code> is <code>{&quot;program_name&quot;, &quot;-o&quot;, &quot;file1&quot;, &quot;file2&quot;}</code></p>
  <p>I want to retrieve <code>&quot;file1&quot;</code> and <code>&quot;file2&quot;</code> in an array just to make an easy iteration over it.</p>
  <pre><code> // PSEUDO
   char *files[argc - 2] = argv.split(2, argc - 2)
  </code></pre>
  <p>Any ideas?</p>