pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Problems with 2006Q3



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.

Joerg



Home | Main Index | Thread Index | Old Index