Shift allocated memory
<p>I have this code:    </p>

<pre><code>int items = 2;
int *array = malloc(items * sizeof(int));
array[0] = 1;
array[1] = 2;
</code></pre>

<p>I want to pop first item and shift allocated memory just from the left side to do:</p>

<pre><code>array[0] == 2
</code></pre>

<p>Probably need to get address of array and shift it for <em><code>poped_items * sizeof(int)</code></em> or something like this? What should be the first realloc argument?</p>