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.

注意
num*size should not have overflow wrap.
参数
num[IN] Number of allocated memory.
size[IN] Size of each memory.
返回值
Ifthe application is successful, returned the pointer pointing to the memory.
Ifthe application failed, return NULL.