free() question
From: Aaron Walker (ka0ttic_at_REMOVETHIScfl.rr.com)
Date: 12/26/03
- Next message: Jonathan Hoyle: "Re: Too big integers"
- Previous message: Christopher Benson-Manica: "Re: print out a file?"
- Next in thread: Joe Wright: "Re: free() question"
- Reply: Joe Wright: "Re: free() question"
- Reply: Thomas Lumley: "Re: free() question"
- Reply: Kevin Goodsell: "Re: free() question"
- Reply: Barry Schwarz: "Re: free() question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 26 Dec 2003 14:44:15 GMT
I apologize if this is a stupid question. I was just curious... is
there any reason why free() doesn't set the pointer (that was passed to
it) to NULL after giving the memory back to the heap? I decided to
write a wrapper for free() to do just that, and I wondered why free()
itself didn't do it.
Aaron
-- /usr/bin/fortune says: How can you work when the system's so crowded?
- Next message: Jonathan Hoyle: "Re: Too big integers"
- Previous message: Christopher Benson-Manica: "Re: print out a file?"
- Next in thread: Joe Wright: "Re: free() question"
- Reply: Joe Wright: "Re: free() question"
- Reply: Thomas Lumley: "Re: free() question"
- Reply: Kevin Goodsell: "Re: free() question"
- Reply: Barry Schwarz: "Re: free() question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|