On success, S3L_copy_array returns S3L_SUCCESS.
S3L_copy_array checks the arrays it accepts as arguments. If an array argument contains an invalid or corrupted value, the function terminates and an error code indicating which value of the array handle was invalid is returned. See Appendix A of this manual for a detailed list of these error codes.
In addition, the following conditions will cause the function to terminate and return the associated code:
S3L_ERR_MATCH_RANK - The ranks of A and B do not match.
S3L_ERR_MATCH_EXTENTS - The extents of A and B do not match.
S3L_ERR_MATCH_DTYPE - The data types of A and B do not match.
S3L_ERR_ARG_DTYPE - The data type of A and/or B is invalid.