title: how to duplicate pointer in order to point on the same object
body: <p>I'm new with all the C programming and I have a question , </p>
  
  <p>If I have a struct for example - and I'm pointing on it , I want to create a new pointer in order to point on the same data , but not for the two pointers to point on the same object .
  how can I do that without copying every single field in the struct ?</p>
  
  <pre><code>typedef struct
  {
   int x;
   int y;
   int z;
  }mySTRUCT;
  
  mySTRUCT *a;
  mySTRUCT *b;
  a-&gt;x = 1;
  a-&gt;y = 2;
  a-&gt;z = 3;
  </code></pre>
  
  <p>and now I want b to point on the same data</p>
  
  <pre><code>b = *a 
  </code></pre>
  
  <p>it's not correct, and the compiler is yelling at me </p>
  
  <p>any help would be great! thank you :)</p>