title: Copying data in pointers
body: <p>How does one copy the data that is pointed to by another pointer?</p>
  
  <p>I have the following</p>
  
  <pre><code>void *startgpswatchdog(void *ptr)
  {
      GPSLocation *destination;
      *destination = (GPSLocation *) ptr;
  </code></pre>
  
  <p>Will this do this correctly?</p>
  
  <p>I free the data that is passed into thread after passing it, so I need to copy the data.</p>