Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!rutgers!cmcl2!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: malloced structure initilization Message-ID: <9649@smoke.BRL.MIL> Date: 14 Feb 89 19:43:13 GMT References: <202@sabin.UUCP> <8894@alice.UUCP> <1874@dataio.Data-IO.COM> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 8 In article <1874@dataio.Data-IO.COM> bright@dataio.Data-IO.COM (Walter Bright) writes: >Yah, and init_foo is guaranteed to be initialized to a 0 bit pattern, No, static storage is initialized to zero of the appropriate type, which need not be a 0 bit pattern in all cases. The first few C implementations could use 0-bit fill for zeros of all types; other implementations may need the compiler to do something special to meet this requirement.