TOC PREV NEXT INDEX

ARRFalloc

Synopsis


INTEGER FUNCTION ARRFalloc (N1,type,number_of_elements,N2)
INTEGER N1, N2
INTEGER type, number_of_elements

Description

For a complete description of this function, see ARRalloc.On 64-bit platforms, ARRFalloc actually returns an INTEGER*8.

Arguments

type
n integer code specifying the array's data type. AVS/Express provides the following symbolic constants, defined in <avs/dtype.h>:
Type
Meaning
DTYPE_CHAR
Character
DTYPE_BYTE
Byte
DTYPE_SHORT
Short integer
DTYPE_INT
Integer
DTYPE_FLOAT
Single-precision floating point
DTYPE_DOUBLE
Double-precision floating point
DTYPE_PTR
Pointer
DTYPE_STRING
Character string

number_of_elements
The number of elements to be stored in the allocated memory, expressed as an integer.
N1N2
Both N1 and N2 should be set to 0.
Returned value
The address of the allocated memory area or 0 if the call fails.

Examples

none.
#include <avs/omf.inc>       INTEGER iaddr         C On 64-bit platforms, iaddr should be INTEGER*8       ...       iaddr = ARRFalloc(0,DTYPE_FLOAT,2000,0)       IF (iaddr .EQ. 0) PRINT*,'Error allocating memory area'

See Also

ARRFincr_refcnt
ARRFfree
ARRFoffset
ARRFretptr

TOC PREV NEXT INDEX