title: How to free a pointer to a dynamic array in C?
body: <p>I create a dynamic array in C with malloc, ie.:</p>
  <pre><code>myCharArray = (char *) malloc(16);
  </code></pre>
  <p>Now if I make a function like this and pass <code>myCharArray</code> to it:</p>
  <pre><code>reset(char * myCharArrayp)
  {
      free(myCharArrayp);
  }
  </code></pre>
  <p>will that work, or will I somehow only free the copy of the pointer to <code>myCharArrayp</code> and not the actual <code>myCharArray</code>?</p>