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

Name

Description

num

Number of bytes to allocate.

file

Source file name recorded with the allocation (usually FILE).

line

Source line recorded with the allocation (usually LINE).

Created with MrDocs