title: Save pointer's memory address
body: <p>I have to implement a function that returns the memory address of a pointer when I allocate it with <code>malloc()</code>. I know that <code>malloc(value)</code> allocates an area on the heap which is of size <code>value</code>.</p>
  <p>I know how to implement the code for printing the memory address of that pointer:</p>
  <pre><code>    void *s = malloc (size)
      printf(&quot;%p\n&quot;,s);
  </code></pre>
  <p>My question is, how can I save the value printed by that code in an <code>int</code> or string (e.g. <code>char *</code>)?</p>