Code: Select all
//
// demonstrate array copy functionality
//
array:
TestArray[](0);
once
Array_SetMaxIndex(TestArray, 3); // allocate for elements at indices 0 to 3
TestArray[1] = 123; // set element at index 1 to 123
Array_Copy(TestArray, 1, TestArray, 2, 2); // copy 2 elements starting at index 1 (1, 2) to start at index 2 (2, 3)
Plot1(TestArray[2], "Element2");