// =========================================================================== // Copyright 2018 Autodesk, Inc. All rights reserved. // // Use of this software is subject to the terms of the Autodesk license // agreement provided at the time of installation or download, or which // otherwise accompanies this software in either electronic or hard copy form. // =========================================================================== // // Creation Date: Jan 19, 1999 // // // // // appendStringArray(string $copyTo[], string $copyFrom[], int $copySize) // // // Appends the given number of values from one string array to the end // of another. // // // string[] $copyTo Append other array to this one // string[] $copyFrom Array to copy the elements from // string $numberToCopy Number of items in $copyFrom array to append // // // void : // // // string $to[] = { "a", "b", "c" }; // string $from[] = { "d", "e", "f" }; // appendStringArray($to, $from, 2); // // $to == { "a", "b", "c", "d", "e" } // // // global proc appendStringArray( string $copyTo[], string $copyFrom[], int $numberToCopy ) { int $i; int $j = size($copyTo); for( $i = 0; $i < $numberToCopy; $i++, $j++ ) $copyTo[$j] = $copyFrom[$i]; }