https://github.com/astrodynamic/container-deque-for-c-calculator-s-operation
Container Deque for C Calculator's operation - a library for working with arithmetic operations in C calculators. Includes Deque.a static library and deque.h header file.
https://github.com/astrodynamic/container-deque-for-c-calculator-s-operation
c calcu cmake container deque library makefile
Last synced: 3 months ago
JSON representation
Container Deque for C Calculator's operation - a library for working with arithmetic operations in C calculators. Includes Deque.a static library and deque.h header file.
- Host: GitHub
- URL: https://github.com/astrodynamic/container-deque-for-c-calculator-s-operation
- Owner: Astrodynamic
- License: mit
- Created: 2023-05-05T10:22:25.000Z (about 2 years ago)
- Default Branch: develop
- Last Pushed: 2023-05-05T10:26:54.000Z (about 2 years ago)
- Last Synced: 2025-01-12T18:09:38.265Z (5 months ago)
- Topics: c, calcu, cmake, container, deque, library, makefile
- Language: C
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Container `Deque` for C Calculator's operation
This is a library for working with arithmetic operations in different types of C calculators.
## Build
To build the library, simply run the following command:
```
cmake -S . -B ./build
cmake --build ./build
```This will create a static library file `Deque.a` in the `./lib` folder.
## Usage
To use this library in your C calculator project, simply include the `deque.h` header file and link against the `Ddeque.a` library file:
```
#include
#include "deque.h"int main() {
Deque* deque = init_deque();
d_push_f(deque, NUMBER, 42.0);
double value;
d_get_number_f(deque, &value);
printf("%f\n", value);
return 0;
}
```## Dependencies
This library has no external dependencies.
## Development
To contribute to this library, please follow the steps below:
1. Clone this repository: `git clone https://github.com/Astrodynamic/Container-Deque-for-C-Calculator-s-operation`
2. Build the library: `cmake -S . -B ./build`
3. Make changes to the library source files in `./src`
4. Submit a pull request## License
This library is licensed under the MIT License. See the [LICENSE](LICENSE) file for more information.
---
### Example with Other Projects
If you want to use this library in another project, you can add it as a submodule and include it in your CMakeLists.txt file:
```cmake
# Add the deque library as a submodule
git submodule add https://github.com/Astrodynamic/Container-Deque-for-C-Calculator-s-operation# Add the library to your project
add_subdirectory(arithmetic-library)# Link against the library
target_link_libraries(my_calculator PRIVATE Deque)
```