This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Is it possible to detect the memory status ?
- From: Mustafa4LP <mustafa dot hussain at nechclst dot in>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 27 Jan 2009 00:45:10 -0800 (PST)
- Subject: Is it possible to detect the memory status ?
Hi,
I am wondering whether it is possible to detect that a memory is already
freed or not in a C program.
Like if there is some pointer which points to certain memory and I want it
to free but the problem is that it may already be freed.
is there any routine which can tell me that if the memory is freed or not
and does the memory belongs to the constant string (which is global) ?
If this is not available with the current compilers, is it possible to
implement such library functions ?
Thanks in advance.
Best Regards,
Mustafa
--
View this message in context: http://www.nabble.com/Is-it-possible-to-detect-the-memory-status---tp21681631p21681631.html
Sent from the gcc - Help mailing list archive at Nabble.com.