NULL macro — Null pointer
#define NULL . . .
The NULL
macro expands to a
null pointer constant, such as 0
or 0L
.
Some C libraries declare NULL
as ((void*)0)
in stddef.h
. This definition is fine for C,
but is wrong for C++. Most C++ compilers correctly declare NULL
, but you should be aware of the
difference.