Function darray_data_copy

Function Documentation

status_t darray_data_copy(const struct darray *arr1, const struct darray *arr2)

Copy the data from one darray to another.

The element sizes for the two arrays must be the same. The capacities can be different, but the destination must have enough space for the source. The data from the source is placed starting at the beginning of the destination array. The source and destination array cannot overlap.

Parameters:
  • arr1 – The destination.

  • arr2 – The source.

Returns:

status_t.