Re: Equivalent malloc with calloc
- From: Keith Thompson <kst-u@xxxxxxx>
- Date: Thu, 05 Apr 2007 15:04:17 -0700
"B. Augestad" <boa@xxxxxxxxxxxxxx> writes:
Richard Tobin wrote:
In article <pan.2007.04.03.12.56.46@xxxxxxxxxxxxxx>,
J. Sommers <jsommers@xxxxxxxxxxxxxx> wrote:
Prime Computers is dead isn't it?How could you tell?
-- Richard
Wikipedia? According to http://en.wikipedia.org/wiki/Prime_Computer,
Prime Computers died 15 years ago.
Are there still computers made by Prime running somewhere? Hard to
tell, but that's not really important. If Prime is/was the only
example of computers with NULL != all bits zero, we either need more
examples or it is safe to assume that one can use calloc() to zero out
pointers.
Since the standard makes no such guarantee, a new platform could come
out tomorrow with null pointers having some representation other than
all-bits-zero. Those of us who have avoided making any assumptions
about pointer representation will be able to port our code to the new
platform with no problem (at least not in that area).
--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
.
- References:
- Equivalent malloc with calloc
- From: lovecreatesbea...@xxxxxxxxx
- Re: Equivalent malloc with calloc
- From: J. Sommers
- Re: Equivalent malloc with calloc
- From: Chris Dollin
- Re: Equivalent malloc with calloc
- From: J. Sommers
- Re: Equivalent malloc with calloc
- From: Richard Tobin
- Re: Equivalent malloc with calloc
- From: B. Augestad
- Equivalent malloc with calloc
- Prev by Date: Re: Reading a key inside a loop
- Next by Date: Re: brain teasers
- Previous by thread: Re: Equivalent malloc with calloc
- Next by thread: Re: Equivalent malloc with calloc
- Index(es):
Relevant Pages
|