pointers, tests, casts

Doug Gwyn gwyn at smoke.BRL.MIL
Fri Dec 2 03:57:09 AEST 1988


In article <226 at twwells.uucp> bill at twwells.UUCP (T. William Wells) writes:
>Otherwise, there are are implementations, those defining NULL as
>(char *)0, which will give an error on the latter statement.

The only valid definitions for NULL are 0 and ((void*)0).
As you say, implementations exist that do this wrong.



More information about the Comp.lang.c mailing list