CRYPTO_zalloc

Allocate num bytes of zero-initialized memory (file/line for debugging).

Synopsis

Declared in <openssl/crypto.h>

void*
CRYPTO_zalloc(
    size_t num,
    char const* file,
    int line);

Return Value

Pointer to zeroed memory, or NULL on failure.

Parameters

NameDescription
numNumber of bytes to allocate.
fileSource file name recorded with the allocation (usually FILE).
lineSource line recorded with the allocation (usually LINE).