Re: NULL vs 0 vs 0L bikeshed time

From: Dag-Erling Smørgrav <des_at_des.no>
Date: Mon, 01 Mar 2004 17:42:28 +0100
Mark Murray <mark_at_grondar.org> writes:
> I'd like to commit the following patch. It makes sure that for C
> and the kernel, NULL is a ((void *)0)

This is not correct, because it makes NULL unusable for function
pointers; you can assign 0 to a function pointer, but not (void *)0.

DES
-- 
Dag-Erling Smørgrav - des_at_des.no
Received on Mon Mar 01 2004 - 07:42:37 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:45 UTC