Date: Wed, 17 Oct 2001 10:53:42 -0700 From: "Chad R. Larson" <chad@DCFinc.com> To: Gregory Bond <gnb@itga.com.au> Cc: Zero Sum <count@shalimar.net.au>, Greg Black <gjb@gbch.net>, cjclark@alum.mit.edu, "Crist J. Clark" <cristjc@earthlink.net>, Heath Nielson <heath@cs.byu.edu>, Warner Losh <imp@harmony.village.org>, David Marker <marker_d@yahoo.com>, freebsd-stable@FreeBSD.ORG Subject: Re: setenv() cores with NULL value [was Re: Gdm proplem on 4.4] Message-ID: <20011017105342.A26621@freeway.dcfinc.com> In-Reply-To: <200110170533.PAA22928@lightning.itga.com.au>; from gnb@itga.com.au on Wed, Oct 17, 2001 at 03:33:49PM %2B1000 References: <200110170533.PAA22928@lightning.itga.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Oct 17, 2001 at 03:33:49PM +1000, Gregory Bond wrote: > Dereferencing NULL pointers has been illegal C since the day C was > invented. See if you can dig up K&R 1st edition (I've lost mine over > the years...) So, I'm more of a packrat than you. Quoting from K&R first edition (the white book [which in my case is tending toward yellow...]) chapter 5 "Pointers and Arrays" we get A pointer is a variable that contains the address of another variable. ... C guarantees that no pointer that validly points to data will contain zero ... We write NULL instead of zero, however, to indicate more clearly that this is a special value for a pointer. Can we be done with this now? Or move to chat? -crl -- Chad R. Larson (CRL15) 602-953-1392 Brother, can you paradigm? chad@dcfinc.com chad@larsons.org larson1@home.com DCF, Inc. - 14623 North 49th Place, Scottsdale, Arizona 85254-2207 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011017105342.A26621>