Create a circular buffer
struct buffer *buff_create( unsigned size, unsigned rsize );
This function creates a circular buffer made up of size number of rsize records.
A pointer to an initialized buffer handle, or NULL if memory for the buffer data couldn't be allocated.
QNX
Safety: | |
---|---|
Interrupt handler | Not applicable |
Signal handler | Not applicable |
Thread | Not applicable |