AllocateMemory()

Syntax

Result = AllocateMemory(#Memory, Size, Flags)

Description

Allocates a contiguous memory area according to the specified size. If the needed memory is available, Result contains the start address of the memory area, else Result is 0. Flags must be 0 for now and will be supported later. If another memory bank was previously allocated with the same #Memory number, then the previous memory bank is automatically freed.

Note: All the allocated memory banks are automatically freed when the programs ends.

Supported OS

Windows, AmigaOS, Linux

Memory - Index