Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Aug 2002 11:28:24 -0700 (PDT)
From:      Archie Cobbs <archie@dellroad.org>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        wollman@lcs.mit.edu, arch@FreeBSD.ORG
Subject:   Re: NULL
Message-ID:  <200208241828.g7OISOR28346@arch20m.dellroad.org>
In-Reply-To: <20020823.213113.89131668.imp@bsdimp.com> "from M. Warner Losh at Aug 23, 2002 09:31:13 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
M. Warner Losh writes:
> : Is 0LL allowed as a null pointer constant?
> 
> Yes.  Any constant integer express that evaluates to 0 is a valid
> 'null pointer'.

FYI-

Current is now "((void *)0)-clean" and LINT compiles with -Werror.
So things are ready if/when we want to try switching.

These are the files that define NULL:

    include/dirent.h
    include/locale.h
    include/stddef.h
    include/stdio.h
    include/stdlib.h
    include/string.h
    include/time.h
    include/unistd.h
    include/wchar.h
    include/rpc/types.h
    lib/libstand/stand.h
    sys/boot/libstand/stand.h
    sys/sys/param.h

-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?200208241828.g7OISOR28346>