https://github.com/bragdond/universal-static-queue-c
Static queue in C which can store any type of data
https://github.com/bragdond/universal-static-queue-c
c queue static-queue template-queue void
Last synced: 19 days ago
JSON representation
Static queue in C which can store any type of data
- Host: GitHub
- URL: https://github.com/bragdond/universal-static-queue-c
- Owner: BragdonD
- Created: 2022-10-09T13:53:58.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-24T08:27:11.000Z (over 3 years ago)
- Last Synced: 2025-03-21T19:44:47.299Z (over 1 year ago)
- Topics: c, queue, static-queue, template-queue, void
- Language: C
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Static-Queue in C
This is a static queue implementation in C. It is able to store any kind of data since it is written with a `void*` array to store the data. Note that if you pass pointer as type for the queue, you will need to handle the dealocation of the element each time you dequeue one.
## Folder-organisation
In the inc folder you will find the header for each files In the src folder you will find the implementation of all the function.
Here the `main` and the `ui` files are just mean as an utilization example.
## How to use it
First you will need to build the project, the makefile is provided with the program, so you just need to enter the following command at the racine of the workspace folder: mingw32-make. Ok so now, you have build the project, (the makefile is setup to compile the program for debug mode) you can now run the program by running the following once again at the racine of the workspace folder : .\bin\main.
In the program, you will be able to use multiple commands. They will be presented to you by a menu when the program is running.
## Warning
Please do not create the bin and obj folder. They will be created by the makefile. Plus do not touch to the created files inside those two folders.