free (NULL);

Henry Spencer henry at utzoo.uucp
Wed May 9 01:44:56 AEST 1990


In article <1194 at wet.UUCP> noah at wet.UUCP (Noah Spurrier) writes:
>Will angry things happen if I try to free(NULL) ?

On many current systems, yes.  ANSI C guarantees that you can free a
null pointer, but many existing implementations will malfunction if
handed one.
-- 
If OSI is the answer, what is |     Henry Spencer at U of Toronto Zoology
the question?? -Rolf Nordhagen| uunet!attcan!utzoo!henry henry at zoo.toronto.edu



More information about the Comp.lang.c mailing list