Newsgroups: comp.lang.c
Path: utzoo!henry
From: henry@utzoo.uucp (Henry Spencer)
Subject: Re: Is "if (!pointer)" as portable as "if (pointer == NULL)" ???
Message-ID: <1990Apr11.163555.5913@utzoo.uucp>
Organization: U of Toronto Zoology
References: <656@hades.OZ> <1461@tkou02.enet.dec.com> <717@ssp11.idca.tds.philips.nl>
Date: Wed, 11 Apr 90 16:35:55 GMT

In article <717@ssp11.idca.tds.philips.nl> dolf@idca.tds.PHILIPS.nl (Dolf Grunbauer) writes:
>How about just a:
>	free(buffer)
>
>The manual pages I know allow a NULL pointer and doing nothing in this case.
>Is this generally true ?

Unfortunately, no.  Old implementations of free() explode when given NULL.
-- 
With features like this,      |     Henry Spencer at U of Toronto Zoology
who needs bugs?               | uunet!attcan!utzoo!henry henry@zoo.toronto.edu
