Giuseppe wrote:
>>> Otherwise, use
>>> const Mystruct null_mystruct; /* will be initialized with nulls */
That statement should either be at file scope, or it should be
static const Mystruct null_mystruct;
This time I got it right, I think
> Mystruct da_azzerare;
>
> da_azzerare = null_mystruct;
That's fine.
> *( Mystruct *) &da_azzerare = *( Mystruct *) &null_struct;
Oh my gosh. You could, but don't. BTW, it should have been
*( const Mystruct *) &null_struct;
since you should not cast away const when you don't need to.
--
Hallvard