On Monday 11 January 2010 23:19:52 Johannes Berg wrote:
> On Mon, 2010-01-11 at 23:13 +0100, Michael Buesch wrote:
>
> > No I don't think so.
> > It's C standard that uninitialized elements on automatic variables are
> > initialized
> > to zero, _if_ at least one element is initialized to something.
> > So if you init one element to 0, all others will be 0, too.
>
> AFAIK, you don't even have to init anything, since otherwise not
> mentioned fields will be set to 0. Hence, just = {} is sufficient for
> arrays and will hopefully compile to the same code as an explicit
> memset().
Oh, nice. You are right, indeed. I didn't know that.
--
Greetings, Michael.
_______________________________________________
Bcm43xx-dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/bcm43xx-dev