This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
free()
- From: Mohsen Pahlevanzadeh <mohsen at pahlevanzadeh dot org>
- To: gcc-help at gcc dot gnu dot org
- Date: Sun, 27 Sep 2009 00:18:00 +0330
- Subject: free()
- Reply-to: mohsen at pahlevanzadeh dot org
Dear all,
We are working on C code (not ++),So we must use free instead delete.
I have following code:
/////////////////////////////////
struct linked_list *p;
p->src="10.0.0.1";
free(p);
printf ("%s",p->srcip);
/////////I see in my output 10.0.0.1
My question: i drop p pinter, but see it's value, how i kill p with its
value?
Yours,
Mohsen