title: Convert list to array
body: <p>I have functon that convert list in array:</p>
  
  <pre><code>void* list_to_array(SList* list)
  {
       int i;
       int array_size = list_get_length(list);
  
       void* array[array_size];
  
       for (i = 0; i &lt; array_size; i++)
       {
        array[i] = list_get_n_data(list,i);
       }
  
       return *array;
  }
  </code></pre>
  
  <p>But when i try to test it:</p>
  
  <pre><code>int* a = (int*)list_to_array(list);
  printf("%d" (int)a);
  </code></pre>
  
  <p>it's ok. I see first element. But when i try to get second or third element:</p>
  
  <pre><code>int* a = (int*)list_to_array(list);
  a++;
  printf("%d" (int)a);
  </code></pre>
  
  <p>I see first element + 4. if i try get third element i see first element value + 8 and etc... Why? What's wrong?</p>
  
  <p>Thank you</p>