Does free just go byte by byte and set every byte to NULL? I am just curious as to how free explicitly works.
Edit: I guess I should be a bit more specific, I apologize. I implemented my own version of malloc and am now attempting to implement free. I have the void * returned from malloc and am using that as an argument for my free function obviously. I am trying to figure out what to do with this function and how I would go about coding this. I implemented malloc using an explicit free list so I want to return this block back to the free list which I know how to do I just don't know what to do with the data inside the memory block.