Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!srcsip!tcnet!nis!amcom!barkus From: barkus@amcom.UUCP (todd barkus) Newsgroups: comp.lang.c Subject: Re: Uninitialized externals and statics. Message-ID: <20@amcom.UUCP> Date: 19 Aug 89 06:20:44 GMT References: <2128@infmx.UUCP> <10764@smoke.BRL.MIL> Reply-To: barkus@amcom.mn.org (todd barkus) Organization: Amcom Software, Inc. Lines: 21 In article <10764@smoke.BRL.MIL> gwyn@brl.arpa (Doug Gwyn) writes: >>In article <2128@infmx.UUCP> dror@infmx.UUCP (Dror Matalon) writes: >>- K&R 2.4 say "External and static variables are initialized >>-to zero by default, but it is good style to state the initialization >>-anyway." >>- Is this really portable ? >> >It's supposed to have always been the rule. >There certainly is a lot of C code that depends on it. Rules are great, especially when every one follows them. Unfortunately not every one does. We have one if not two boxes whose compilers evidently do not know how to read (some of us keep our K&R right next to the terminal, so it's not like they wouldn't have access to one). "The person who assumes the answer often answers to their assumption". I think that is a tebarkus original, (it just popped into my head), which is not to say someone else with alot of unused space in their head might not of had the idea first :-).