COPY - copy contents of one vector into another.

Alternate Entry Name: .COPY

Usage:

B:
   outvec = copy( outvec, invec, size );
/* C users use "memcpy" or "memmove" */

Where:

size
is the size of "invec" as might be declared in an "auto" statement. For example, if "invec" was declared as "auto invec[10]", its size would be 10, even though it actually has 11 words.

Description:

COPY will copy the vector "invec" to the vector "outvec". Note that a total of "size" + 1 words are copied in the process. COPY returns a pointer to the output vector as its value.

Copyright © 1996, Thinkage Ltd.