title: How to split an array in two parts (from start to x and from x to end) in C?
body: <p>I've looked around but there are many different answers and C is confusing, so I'd rather ask for my specific question.</p>
  
  <p>So let's say I have an array like this:</p>
  
  <pre><code>[ls, -l, SPLIT, wc, -w]
  </code></pre>
  
  <p>So I want to split this array into two different (char) arrays like this:</p>
  
  <pre><code>[ls, -l] [wc, -w]
  </code></pre>
  
  <p>Do I use <code>realloc</code> and <code>malloc</code>? </p>