Mail Archives: djgpp/1997/08/17/21:20:20
Peter Berdeklis wrote:
> The language definition specifies the value of uninitialized _auto_
> variables, but not of raw memory allocated by malloc or new. This
> memory
> is undefined. That's where the problem with v1.x and v2.0 came from.
Hmm; ANSI C 7.10.3.3 here says that the value of space returned by malloc
is "indeterminate."
Whether or not this is uninitialized or undefined or indeterminate,
clearly to be strictly conforming your program has to treat the value of
these entities as compeletely unreliable (i.e., always must be set before
use).
--
Erik Max Francis, &tSftDotIotE / email / mailto:max AT alcyone DOT com
Alcyone Systems / web / http://www.alcyone.com/max/
San Jose, California, United States / icbm / 37 20 07 N 121 53 38 W
\
"Love is not love which alters / when it alteration finds."
/ William Shakespeare, _Sonnets_, 116
- Raw text -