title: what is the return type of typeof?
body: <p>I want to provide the type of an element as parameter to an initialization of an array of pointers to element of an unknown types</p>
  
  <p>something like</p>
  
  <pre><code>void* init(type t)
    void* array = malloc(sizeof_type(t)*10));
    return array;
  }
  </code></pre>
  
  <p>and later call for example</p>
  
  <pre><code>   init(typeof(int))
  </code></pre>
  
  <p>But I was not able to figure what is the return type of typeof.</p>
  
  <p>I guess the sizeof_type think can be achieved using</p>
  
  <pre><code>   malloc((type) 0);
  </code></pre>
  
  <p>Thanks in advance</p>
  
  <p>PS: this if for a vector implementatin if someone can point me to some flexiblecode i would be very thankful as well</p>