#C/AllocMem()
25-May-90 22:28:44
Sb: #106309-#C/AllocMem()
Fm: Mike Roth/Lattice 76566,1137
To: Tom Gray 72701,1447
Tom,
To allocate a two dimensional array, you should actually declare a
pointer to the two dimensional array and AllocMem() the proper amount of
memory. Ex:
UWORD *array[20][40];
array = AllocMem(20 * 40 * sizeof(UWORD), MEMF_PUBLIC);
This method can be easily extended to any number of dimensions.
— Mike Roth / Lattice