Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!amdcad!ames!rutgers!dayton!viper!john From: john@viper.Lynx.MN.Org (John Stanley) Newsgroups: comp.lang.c Subject: Re: Caution for those considering MSC 5.0 Message-ID: <620@viper.Lynx.MN.Org> Date: 14 Feb 88 23:28:07 GMT References: <11754@brl-adm.ARPA> Reply-To: john@viper.UUCP (John Stanley) Organization: DynaSoft Systems Lines: 17 In article <11754@brl-adm.ARPA> PEPRBV%CFAAMP.BITNET@husc6.harvard.EDU (Bob Babcock) writes: ....... >The manual seems to indicate that only initialized global >data will go here, but isn't all global data implicitly >initialized to zero if not otherwise specified? It's true on "many", but not all systems. Rule of thumb is NEVER assume any UN-initialized variable contains zero (or NULL)... If you haven't explicitly put something into a variable, assume it's set to a random value or the constant most likely to cause your procedure to bomb.... --- John Stanley (john@viper.UUCP) Software Consultant - DynaSoft Systems UUCP: ...{amdahl,ihnp4,rutgers}!meccts!viper!john