free behavior (was: Re: Out-of-bounds pointers)

Henry Spencer henry at utzoo.uucp
Wed Oct 11 03:04:56 AEST 1989


In article <17119 at rpp386.cactus.org> jfh at rpp386.cactus.org (John F. Haugh II) writes:
>Doesn't free() insure the pointer remains valid until the next
>call to malloc()...

No.  Some Unix implementations guaranteed this; ANSI C does not.
-- 
A bit of tolerance is worth a  |     Henry Spencer at U of Toronto Zoology
megabyte of flaming.           | uunet!attcan!utzoo!henry henry at zoo.toronto.edu



More information about the Comp.std.c mailing list