Function darray_data_set

Function Documentation

status_t darray_data_set(const struct darray *arr, size_t index, const void *e)

Set an item in a darray.

Sets the item at the specified index to the passed in value. There is NO upper bounds checking to make sure that index < darray_size().

Parameters:
  • arr – The darray handle

  • index – The index of the item to set

  • e – The new value

Returns:

status_t