Queue data structure and related operations. More...
Go to the source code of this file.
Classes | |
struct | Queue |
A node in the queue. More... | |
Functions | |
bool | queue_is_empty (Queue *queue) |
Checks if the queue is empty. | |
void | queue_push (Queue *queue, void *data) |
Pushes data onto the queue. | |
void * | queue_pop (Queue *queue) |
Pops data from the queue. | |
void | queue_free (Queue *queue) |
Frees the queue. | |
Queue data structure and related operations.
This file contains the definition of a simple queue data structure and functions to manipulate it. The queue is implemented as a singly linked list.