openHiTLS API openHiTLS 0.1.0-Alpha1

◆ BSL_SAL_Calloc()

void * BSL_SAL_Calloc ( uint32_t  num,
uint32_t  size 
)

Allocate and clear the memory space.

Allocate and clear the memory space. The maximum size of UINT32_MAX is allocated.

Attention
num*size should not have overflow wrap.
Parameters
num[IN] Number of allocated memory.
size[IN] Size of each memory.
Return values
Ifthe application is successful, returned the pointer pointing to the memory.
Ifthe application failed, return NULL.