When you get heap memory with malloc, you have to use a size argument. To release the memory with free(), apparently you just use the pointer. Does this really release the memory from, say, a large structure pointer, and not just the first byte?
2007-01-14
21:49:00
·
2 answers
·
asked by
Drew - Axeman
3
in
Computers & Internet
➔ Programming & Design
Thanks Tony - that is what I was hoping for - I just didn't believe it was that simple.
2007-01-14
22:13:55 ·
update #1