Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Examples  

s_cyclic_buffer Struct Reference

Basic structure that defines the cyclic buffer. More...


Data Fields

void ** buffer
 Array of pointers to (void*), each element points to an item of the buffer.

unsigned long size
 Maximum number of elements in the buffer.

unsigned long start
 Index to the first item in the cyclic buffer.

unsigned long stop
 Index to the last item in the cyclic buffer.

unsigned long current
 Pointer to the current index.

unsigned long current_size
 Current number of element in the buffer (from 0 to 'size').

unsigned long n
 Current number of element extracted (this is used by get_element()).


Detailed Description

Basic structure that defines the cyclic buffer.
Examples:

test_cyclic_buffer.c.

Definition at line 23 of file cyclic_buffer.h.


The documentation for this struct was generated from the following file:
Generated on Thu Apr 3 16:23:48 2003 for Common_C_libraries by doxygen1.3-rc1