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)
void * temp = sbrk(sizeof(void*)+sizeof(unsigned int)+size);
Now I want to set the value of the void * in temp to be NULL, however when I try to do
*(void *)temp = NULL;
my compiler tells me that I cannot dereference a void *. How do I solve this error?