allocator
Dynamic memory functions. Eventually, these will go away in favor of new/drop or something. And hopefully be taken over by the compiler itself, so programmers can't screw it up. We'll see.
calloc
pub fn calloc(int num, int width)
Allocate memory for an array of num elements, each width bytes wide, initialize each byte to zero, and return a pointer to the first byte. The same pointer must be passed back to free at some point.
free
pub fn free(void* mem)
Free the allocation pointed to by the passed pointer, previously returned from malloc. A null pointer may be "freed" as a no-op.
malloc
pub fn malloc(int bytes)
Allocate (at least) the specified number of bytes of memory and return a pointer to it. The same pointer must be passed back to free at some point.