Deleting linked lists.
Stephen Carlson
scc at rlgvax.Reston.ICL.COM
Wed Apr 3 08:42:07 AEST 1991
In article <846 at saxony.pa.reuter.COM> dgil at pa.reuter.COM (Dave Gillett) writes:
>In <2636 at borg.cs.unc.edu> warner at weiss.cs.unc.edu (Byron Warner) writes:
>> free(ptr);
> Even if the value of ptr is not changed by free(), you have absolutely no
Since C is call-by-value, free() cannot change the value of ptr. However,
free() may release space back to operating system so that a subsequent
inspection of ptr will trap.
--
Stephen Carlson | ICL OFFICEPOWER Center | In theory, theory and
scc at rlgvax.reston.icl.com | 11490 Commerce Park Drive | practice are the same.
..!uunet!rlgvax!scc | Reston, VA 22091 |
More information about the Comp.lang.c
mailing list