https://github.com/mrvideo/rbt-library
A library for the management of RBT (Red-Black Trees in C).
https://github.com/mrvideo/rbt-library
c library rbtree
Last synced: 27 days ago
JSON representation
A library for the management of RBT (Red-Black Trees in C).
- Host: GitHub
- URL: https://github.com/mrvideo/rbt-library
- Owner: MrVideo
- Created: 2022-09-02T14:47:05.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-17T21:25:24.000Z (about 2 years ago)
- Last Synced: 2025-03-11T00:48:31.884Z (over 1 year ago)
- Topics: c, library, rbtree
- Language: C
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RBT Library
This is a small C library to work with [RB-Trees](https://en.wikipedia.org/wiki/Red%E2%80%93black_tree).
I remember doing this way back when working on my [WordChecker project](https://github.com/MrVideo/API22), so when I found it among my private repos I decided to finish it and publish it.
This library also contains an `add_to_list` function, which lets users copy the contents of an RBT to a linked-list.
## Compilation
In order to compile this with your project, the simplest way is to add it as a source in `gcc` or equivalents:
```
$ gcc rbt.c main.c -o main
```
Make sure to have both the header file and the source file in the same directory as `main.c` (or add a full path to the compile command).