42void *
calloc(
size_t nitems,
size_t size)
47 if (nitems == 0 || size == 0) {
51 real_size = (
size_t)(nitems * size);
54 (
void) memset_s((
void *) ptr, real_size, 0, real_size);
101 (
void) memset_s(ptr, size, 0, size);
VOID * LOS_KernelMalloc(UINT32 size)
VOID * LOS_KernelRealloc(VOID *ptr, UINT32 size)
VOID LOS_KernelFree(VOID *ptr)
VOID * LOS_KernelMallocAlign(UINT32 size, UINT32 boundary)
void * zalloc(size_t size)
void * memalign(size_t boundary, size_t size)
void * malloc(size_t size)
动态分配内存块大小
void * realloc(void *ptr, size_t size)
重分配内存
void * calloc(size_t nitems, size_t size)
void free(void *ptr)
释放ptr所指向的内存空间
ARG_NUM_3 ARG_NUM_1 ARG_NUM_2 ARG_NUM_2 ARG_NUM_3 ARG_NUM_1 ARG_NUM_4 ARG_NUM_2 ARG_NUM_2 ARG_NUM_5 ARG_NUM_2 void