Function darray_inject

Function Documentation

status_t darray_inject(const struct darray *arr, void (*f)(void *e, void *res), void *result)

Compute a cumulative SOMETHING using all elements in the darray.

Parameters:
  • arr – The darray handle

  • f – The callback for each element (can modify elements). It is passed each element in turn, along with the in-progress result.

  • result – The initial result.

Returns:

status_t.