Dynamic first in first out positive integer queue. More...
Data Structures | |
struct | dyn_fifo |
Dynamic first in first out positive integer queue. More... | |
Typedefs | |
typedef struct dyn_fifo | dyn_fifo_t |
Type definition of the dynamic fifo queue. | |
typedef dyn_fifo_t * | dyn_fifo_ref |
Type definition of the dynamic fifo queue pointer. | |
Functions | |
int | dyn_fifo_initialize (dyn_fifo_ref fifo, int size) |
Initializes the dynamic queue. | |
int | dyn_fifo_push (dyn_fifo_ref fifo, int value, int max_size) |
Appends a new item to the queue end. | |
int | dyn_fifo_pop (dyn_fifo_ref fifo) |
Returns and excludes the first item in the queue. | |
int | dyn_fifo_value (dyn_fifo_ref fifo) |
Returns and keeps the first item in the queue. | |
int | dyn_fifo_destroy (dyn_fifo_ref fifo) |
Clears and destroys the queue. |
Dynamic first in first out positive integer queue.
Possitive integer values only.