copyArray

Syntax

int copyArray (int src, int dest)

Arguments

src
Number of the source array whose data will be copied. Values from 0 to 99 are allowed.
dest
Number of the destination array to which the data from the source array will be copied. Values from 0 to 99 are allowed.

Return

Returns zero if it failed and 1 if it succeeded.

Description

Lets you very quickly create a duplicate of the source array. If the source array doesn't exist, this function will fail. If the destination array doesn't exist, it will be automatically created. The destination array will automatically be adjusted to the size of the source array. Data that was stored in the destination array will be overwritten.

Example

Also see

allocArray, freeArray, getArray, putArray, getArrayDim

Comments

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