Array: created a macro CSPL_Array_copy() to copy parts of arrays and updated all the other functions to use this not directly memcpy