title: How to save pointer in C
body: <p>In my app, for debugging I want to save a pointer, before I do other operations on it, e.g.</p>
  
  <pre><code>void foo(...)
  {
      /* suppose ptr1 points to one of my structs */
      ptr1 = NULL;
      /* before that ptr1=NULL I want to save value of that pointer - how to do it ? */
  
  }
  </code></pre>
  
  <p>Thanks for any help</p>