Function rc_ringbuf_free#
Defined in File ring_buffer.h
Function Documentation#
-
int rc_ringbuf_free(rc_ringbuf_t *buf)#
Frees the memory allocated for buffer buf.
Also set the initialized flag to 0 so other functions don’t try to access unallocated memory.
- Parameters:
buf – Pointer to user’s buffer
- Returns:
Returns 0 on success or -1 on failure.