Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Oct 2004 08:54:13 +0200 (CEST)
From:      Harti Brandt <harti@freebsd.org>
To:        Mike Hunter <mhunter@ack.Berkeley.EDU>
Cc:        hackers@freebsd.org
Subject:   Re: please help with: warning: initialization makes integer from pointer
Message-ID:  <20041011084925.N25731@beagle.kn.op.dlr.de>
In-Reply-To: <20041008161442.GA9862@ack.Berkeley.EDU>
References:  <20041005054213.GA11770@lesanti.hq.sinectis.com.ar> <20041005202816.GA14973@titan.klemm.apsfilter.org> <20041005205040.GH31397@lesanti.hq.sinectis.com.ar> <20041006060437.GA23364@titan.klemm.apsfilter.org> <416579E1.8050308@nuclearelephant.com> <20041008173138.Y14215@beagle.kn.op.dlr.de> <20041008161442.GA9862@ack.Berkeley.EDU>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 8 Oct 2004, Mike Hunter wrote:

MH>On Oct 08, "Harti Brandt" wrote:
MH>
MH>> On Fri, 8 Oct 2004, Dan Nelson wrote:
MH>> 
MH>> Memset is actually not portable if the structure contains pointers because 
MH>> it would initialize the pointers to 0 values not to 0 pointers. A 0 
MH>> pointer not necessarily has a 0 value. A pointer can be portably be 
MH>> initialize to the 0-pointer only by assigning NULL (or 0) (or by assigning 
MH>> another pointer that is alreay initialized).
MH>
MH>Sick!
MH>
MH>Are there actually systems out there that don't have "all-zero" NULL pointers?

If you ask this question on comp.std.c I'm sure you'll get a number of 
positive answers, but be prepared to start a _long_ thread :-)

harti



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