User Tools

Site Tools


jvs:cigal:manual:chapter3:array

CIGAL Reference Manual, Chapter 3 (Functions): array

Array -- Allocate memory for an array variable

usage: arrayvarb = array(leng)

The ARRAY command sets the length and allocates storage space for dynamic array variables (i.e., for array variables originally declared without a length specification – see DECLARE(2)). This command has no effect on static array variables, for which the storage space is fixed.

The LENG argument is necessary and indicates the number of requested storage elements. The total memory space allocated depends on the word size originally specified by the DECLARE command. ARRAY first releases any memory previously allocated to ARRAYVARB and then allocates new memory if enough is available, otherwise an error message is printed. Memory allocated by the ARRAY command remains dynamic and can be changed by subsequent calls to ARRAY, or ACCEPT, or by the assignment operator (=).

See Also:
DECLARE(2), FREEMEM(4), MATRIX(3), MAXMEM(4), RELEASE(2), SOLID(3)

CIGAL Home, CIGAL Manual, Functions List, Manual Help

jvs/cigal/manual/chapter3/array.txt · Last modified: 2023/02/23 18:43 (external edit)