Bruno Haible <address@hidden> writes:
Benoit SIGOURE wrote:
4) Don't use 0 to designate null pointers. That doesn't sit
well with
C++ compilers.
s/C++/C/ right?
Actually, neither C nor C++ compilers cry when you use 0 for NULL.
It's only
my personal preference.
On platforms where integers aren't the same size as pointers,
things can
go wrong if 1) you pass 0 to a function that expects a pointer and no
function prototype was available during compilation, or 2) you pass it
to a function that takes a variable parameter list. So it is a good
habit to use NULL for pointers.
/Simon