getArray

Syntax

int getArray (int nr, int x, int y, int z)

Arguments

nr
Number of the array. Values from 0 to 99 are acccepted.
x, y, z
x, y, and z coordinates of a cell in the array. If you allocated a one-dimensional array, set y and z to zero. If you allocated a two-dimensional array, set z to zero.

Return

Returns the value that was stored at the specified coordinates in the array. If the specified coordinates lie outside the array, a zero value will be returned.

Description

It lets you read a value from an array.

Example

See allocArray

Also see

allocArray, freeArray, putArray, getArrayDim, copyArray

Comments

Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.