Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_adup() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_ADUP()

 DESCRIPTION

 C_ADUP() copies the contents of a given ClipOn array to another
 ClipOn array.  Both arrays must be previously declared to the
 correct length.  All elements from the source array are copied to
 the target array until either the end of the source array is
 reached or the end of the target array is reached.  (Refer to
 Chapter 3 for a complete discussion about ClipOn arrays.)

 NOTES

 The numeric reference for the ClipOn array is a pointer to the
 array in memory.  Be careful not to change the value of this
 pointer, or the array will be unaccessible.

 SYNTAX

 C_ADUP(source, target)

 PARAMETERS

 source (N) is the numeric reference variable for the source ClipOn array.

 target (N) is the numeric reference variable for the target ClipOn array.

 RETURNS

 There is no return value.

 EXAMPLES

 a1 = c_adeclare(100)    && Declare array for 100 elements
 for i = 1 to 100        && fill first 100 elements of array with
   c_aput(a1,i,i)        && numbers 1 through 100.
 next

 && Declare target array for same length as array a1 using c_asize()
 && function to get the length.

 a2 = c_adeclare(c_asize(a1))

 c_adup(a1,a2)    && Duplicate array a1 to array a2


See Also: C_ADECLARE() C_ARELEASE() C_APUT() C_AGET() C_ASIZE()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson