title: how do i cast the void pointer to char array in a multithreaded program in C
body: <p>how do i cast the void pointer to char array in a multithreaded program in C</p>
  
  <pre><code>void* write(void* ptr) {    
     char array[100];
     array= (char*)ptr;
     printf("%s",array);  
  }
  </code></pre>