Sorry if I wasn't clear enough, but that's actually what my question
is.

What's the need/point of calling memset if initialization via " = {0};
" works just as well. Are you saying that it doesn't? Or are you
saying that you're not quite sure, and to be on the safe side, do
both. I'd like to avoid doing work (even if only 1 a liner) that isn't
needed. i'd like to put this to rest once and for all, so if anyone
knows, could please help me out here.

Cheers,
Danny

On Mar 22, 5:23 am, Smita <[email protected]> wrote:
> It works fine with gcc.
> However, you might want to initialize the entire array to 0 using a
> memset.
>
> Smita
>
> On Mar 21, 10:23 pm, "Book'em Dano" <[email protected]> wrote:
>
> > Can someone please confirm whether it's safe to initialize a POD
> > struct using:
>
> > MyStruct blat = {0};
>
> > with gcc on Linux/Mac? I know this works fine with the VC compiler,
> > but I dont have gcc handy.
>
> > Thanks,
> > D
--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to