Contents

malloc

The function for allocating any necessary storage.

Declaration

var malloc: (Int) -> UnsafeMutableRawPointer?

Parameters

  • size:

    The size of space to allocate in bytes.

Return Value

A pointer to newly allocated memory, or nil if allocation fails.

Discussion

The system frees memory through the free callback. If this function pointer is nil, the system uses malloc().

See Also

Inspecting Symbolic Factor Options