title: How do you convert void pointer to char pointer in C
body: <p>Ok this has been become sooo confusing to me. I just don't know what is wrong with this assignment:</p>
  
  <pre><code>void *pa; void *pb;
  char *ptemp; char *ptemp2; 
  
  ptemp = (char *)pa;
  ptemp2 = (char *)pb;
  </code></pre>
  
  <p>Can anyone tell me why I'm getting this error:</p>
  
  <blockquote>
    <p>error: invalid conversion from ‘void*’ to ‘char*’</p>
  </blockquote>