LD_COPY - copy data from input file to output file.

Usage:

#include <ld.h>
ret = ld_copy(length);

Where:

unsigned long length;
is the number of bytes to copy.
int ret;
will be FALSE (zero) if the target machine of the input file is not equal to the target machine of the output file. In this case, nothing is copied. If the target machines match, "ld_copy" returns TRUE (non-zero).

Description:

"ld_copy" copies the given number of bytes from the input file to the output file. It should only be used to copy complete directives.

"ld_copy" checks that the target machines of the two files match, but does no other checking. For example, it does not check to see if the checksums are correct.

Copyright © 1996, Thinkage Ltd.