**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 [[jvs:cigal:manual:chapter2:declare|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:**\\ [[jvs:cigal:manual:chapter2:declare|DECLARE(2)]], [[jvs:cigal:manual:chapter4:freemem|FREEMEM(4)]], [[jvs:cigal:manual:chapter3:matrix|MATRIX(3)]], [[jvs:cigal:manual:chapter4:maxmem|MAXMEM(4)]], [[jvs:cigal:manual:chapter2:release|RELEASE(2)]], [[jvs:cigal:manual:chapter3:solid|SOLID(3)]] [[jvs:cigal|CIGAL Home]], [[jvs:cigal:manual|CIGAL Manual]], [[jvs:cigal:manual:chapter3|Functions List]], [[jvs:cigal:manual:help|Manual Help]]