httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <>
Subject Re: Use of pcalloc()
Date Sat, 19 Jul 1997 17:45:39 GMT
Alexei Kosut wrote:
> So if the null pointer was, say, six, then (!pointer) would still work,
> because 0 would be defined to be 6 (ain't C great?) in pointer
> context. However, calloc() would still fill a structure with zero, which,
> by way of not being equal to six, is not a null pointer.

But, as far as ANSI is concerned, any integral constant value of 0
is defined as being the same as a NULL pointer.

      Jim Jagielski            |       jaguNET Access Services           |
            "Look at me! I'm wearing a cardboard belt!"

View raw message