Function fifo_map

Function Documentation

status_t fifo_map(struct fifo *fifo, void (*f)(void *e))

Apply an operation to all elements of the FIFO.

Parameters:
  • fifo – The FIFO handle.

  • f – A function pointer which will be called for every element in the FIFO. This function CAN modify FIFO elements.

Returns:

status_t.