calloc
Dieter Rothmeier
dieter at oahu.cs.ucla.edu
Wed Apr 12 05:22:43 AEST 1989
According to Harbison + Steele's book, calloc returns a region of
memory with all bits set to zero. They also point out that pointers
filled with zero bits do not necessarily have the value NULL, nor
do arithmetic values consisting of zero bits have necessarily have the value
zero. How can this be? I always thought a pointer consisting of zero bits
is NULL.
A puzzled programmer,
Dieter Rothmeier
More information about the Comp.lang.c
mailing list