delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/08/02/11:31:07

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: assembly code of the "strange error" - program
Date: 2 Aug 2004 15:24:37 GMT
Lines: 18
Message-ID: <2n74llFts6lmU1@uni-berlin.de>
References: <WcpNc.640$zS6 DOT 86489 AT news02 DOT tsnz DOT net> <20040727070949 DOT 29244 DOT 00000306 AT mb-m19 DOT aol DOT com> <pnxNc.667$zS6 DOT 95084 AT news02 DOT tsnz DOT net> <410D7A24 DOT 1306F0C1 AT yahoo DOT com>
X-Trace: news.uni-berlin.de bdFbD0gCuH/n7kiQi4bDpg0vhQSl94bhrz6Zs4yRTgwyQmVLnJppdiuckg
X-Orig-Path: not-for-mail
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

CBFalconer <cbfalconer AT yahoo DOT com> wrote:

> That applies to automatic and malloced storage.  static storage is
> guaranteed to be initialized to 'all bytes zero' barring explicit
> other initialization. 

Close but not quite correct, I think. It's actually  guaranteed to
be initialized to all contained objects equalling their particular flavour
of zero.  That's often the same as all bytes zero, but it doesn't have
to be.

> Read the C standard.  That is why it exists.

Full ACK.

-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019