Function rbuffer_front

Function Documentation

void *rbuffer_front(const struct rbuffer *rb)

Get a reference to the first entry in the ringbuffer.

The ringbuffer is not modified.

Parameters:

rb – The ringbuffer handle.

Returns:

A reference to the first element, or NULL if no such element or an error occurred.