Open Enclave
void* oe_host_calloc ( size_t  nmemb,
size_t  size 

Allocate zero-filled bytes from the host's heap.

This function allocates size bytes from the host's heap and fills it with zero character. It returns the address of the allocated memory. The implementation performs an OCALL to the host, which calls calloc(). To free the memory, it must be passed to oe_host_free().

nmembThe number of elements to be allocated and zero-filled.
sizeThe size of each element.
The allocated memory or NULL if unable to allocate the memory.