[En-Nut-Discussion] Problem with Ethernut Startup
Harald Kipp
harald.kipp at egnite.de
Tue Jun 24 22:40:01 CEST 2003
>Back on my protability horse.
>
>Even better is
>
>static int bar ZERO_INIT;
Aesthetic hat on.
Waaahhh, this looks sooouu ugly. :-)
>where ZERO_INIT is defined as nothing for environments that zero memory on
>start-up and =0 on others.
>
>Then you can use the code where you need to initialise variables also.
Seriously, I doubt there is _any_ C environment, where statics/globals
are _not_ initialized to zero.
Harald
More information about the En-Nut-Discussion
mailing list