alignedAlloc0

This function is similar to glib.global.alignedAlloc, but it will also clear the allocated memory before returning it.

void*
alignedAlloc0
(
size_t nBlocks
,,
size_t alignment
)

Parameters

nBlocks size_t

the number of blocks to allocate

nBlockBytes size_t

the size of each block in bytes

alignment size_t

the alignment to be enforced, which must be a positive power of 2 and a multiple of sizeof(void*)

Return Value

Type: void*

the allocated, cleared memory