sys_malloc(long size);

sys_nxalloc(long size);

Allocates a contiguous memory area with the given size. This can be used to create arrays of dynamic size. A7.79

Parameters:

size - Size of the allocated memory area, in bytes.

Returns:

void* pointer to the allocated memory area, or NULL when the allocation failed. The area is cleared to zero at allocation.

Speed:

Medium (sys_malloc)
Fast (sys_nxalloc)

Remarks:

Example:

See ent_nextvertex.

See also:

sys_free, level_free, sizeof, sys_memory, nexus

► latest version online