Elemental Intrinsic Function (Generic): Allocates a block of memory. This is a generic function that has no specific function associated with it. It must not be passed as an actual argument.
result=MALLOC(size)
size | (Input) Must be of type integer. This value is the size (in bytes) of memory to be allocated. |
Results
The result type is INTEGER(4) on IA-32 architecture; INTEGER(8) on Intel® 64 architecture. The result is the starting address of the allocated memory. The memory allocated can be freed by using the FREE intrinsic function.
Parent topic: M to N