Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Aug 2002 16:44:50 -0700 (PDT)
From:      Archie Cobbs <archie@dellroad.org>
To:        freebsd-arch@freebsd.org
Subject:   NULL
Message-ID:  <200208202344.g7KNioV03523@arch20m.dellroad.org>

next in thread | raw e-mail | index | archive | help

Simple question...

Why isn't NULL defined to be "((void *)0)" instead of "0" ?

You get more useful warnings from 'cc -Wall' with "((void *)0)".

-Archie

__________________________________________________________________________
Archie Cobbs     *     Packet Design     *     http://www.packetdesign.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208202344.g7KNioV03523>