title: How to set the value of a void **
body: <p>So I am trying to use the following code to add some memory to the heap without using malloc (size is a unsigned int parameter in the function, and is not a set number)</p>
  
  <pre><code>void * temp = sbrk(sizeof(void*)+sizeof(unsigned int)+size);
  </code></pre>
  
  <p>Now I want to set the value of the void * in temp to be NULL, however when I try to do</p>
  
  <pre><code>*(void *)temp = NULL;
  </code></pre>
  
  <p>my compiler tells me that I cannot dereference a void *.  How do I solve this error?</p>