- Generic Data type support.
- Auto garbage collection while dequeuing the data from queue.
- No size restriction due to implementation with the help of linked list.
- Better data structure management.
- Add and Dequeue operation with time complexity of O(1).
- Clone this project.
git clone https://github.com/namantam1/queue
cd queue
- Run the example file with make or command line.
make
# or
gcc queue.c example.c
- To use this queue in another project import this libary as -
#include "queue/queue.h"
int main() {
int data = 10;
// create a new queue
queue q = create_queue(&data);
// do you stuff
// ...
// ...
// destroy the queue if not in use to free the memory.
destroy_queue(q);
}
If you find any please don't hesitate to create an issue.
Any Contribution or suggestion are welcome.
This project is MIT License.