Subject: Re: Problems with 2006Q3
To: None <>
From: Joerg Sonnenberger <>
List: pkgsrc-users
Date: 11/03/2006 10:31:09
On Fri, Nov 03, 2006 at 01:21:28AM -0800, Tom Spindler wrote:
> To amplify this, IEEE 1003.1-2004 says for free():
>     If ptr is a null pointer, no action shall occur.
> and for malloc():
>     If size is 0, either a null pointer or a unique pointer that can
>     be successfully passed to free() shall be returned. 

Yeah, I was refering to ISO C99, which is less strict for malloc. It
just says it is implementation defined and if a not-null pointer is
returned it should be free()-able. The interesting question is whether
unique is used in the sense of malloc(0) != malloc(0) or not.