Function rc_ringbuf_reset#
Defined in File ring_buffer.h
Function Documentation#
-
int rc_ringbuf_reset(rc_ringbuf_t *buf)#
Sets all values in the buffer to 0.0f and sets the buffer index back to 0.
- Parameters:
buf – Pointer to user’s buffer
- Returns:
Returns 0 on success or -1 on failure.