A comprehensive collection of intrusive, thread-safe data structures implemented in C89.
Available data structures:
- AVL Tree
- Binary Search Tree
- Binary Tree
- Double-ended Queue
- Doubly Linked List
- Hash Table
- Heap
- Singly Linked List
- Queue
- Red-Black Tree
- Stack
- Trie
nix build
make
make install
Include the central header ds.h in your C code:
#include <ds.h> // thread unsafe
#include <ds_safe.h> // thread safe
To compile your project with the library:
gcc -o example.c -lds
For specific data structure usage, check out the tests and the headers.
Contributions are welcome!
Before submitting a pull request please:
- format your code with
clang-format
- test your code with
valgrind