On Tuesday 19 April 2005 7:39 pm, Philipp Thomas wrote:
That's from the pre-ANSI days, when void and 'void *' didn't exist. The C standard defines NULL to be (void *)0. Not entirely true: "NULL which expands to an implementation-defined null pointer constant". ISO/IEC 9899:1999
Also, the void keyword did exist, at least back in 1980 when I was working
on porting Xenix to a Raytheon machine. I believe that ANSI '89 defined the
(void *) type at the universal pointer.
The null pointer constant: "An integer constant expression with the value of
0, or such an expression cast to type void *".
In C, both K&R and ANSI, the integer 0 has a special consideration.
--
Jerry Feldman