Module memory

Module memory 

Source

Functions§

aligned_alloc
Allocates aligned memory.
calloc
Allocates a block of memory for an array of nmemb elements, each of size bytes. The memory is initialized to 0s.
free
Frees the memory block pointed to by ptr.
malloc
Allocates a block of memory with the given size. The memory is not guaranteed to be initialized to 0s.
realloc
Changes the size of the memory block pointed to by ptr to size bytes. If the returned ptr is non-null, any usage of the old memory block is immediately undefined behavior.