>For large structures this maybe the case, yes. But even there you either
>already use some sort of constructors or at least just can initialize it
with
>a memcpy(ptr, 0, sizeof(ptr)) explicitly.

Ugh, no.  I don't want to turn this list into comp.lang.c, but
        From the beginning of time, C has guaranteed that static variables
        without explicit initialization are guaranteed to have all fields
        set to zero.

Note that the memcpy idea is wrong for two reasons:
        It does at runtime what the language already has guaranteed at compile
        (most likely, load) time.

        It assumes that a NULL pointer and a 0.0 floating-point number are
        all-bits-zero.


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to