malloced structure initilization

Doug Gwyn gwyn at smoke.BRL.MIL
Wed Feb 15 05:43:13 AEST 1989


In article <1874 at dataio.Data-IO.COM> bright at 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.



More information about the Comp.lang.c mailing list