libcodr7
libcodr7 copied to clipboard
fundamental tools in the spirit of C
setup
libcodr7 requires a C11 compiler and CMake to build.
$ git clone https://github.com/codr7/libcodr7.git
$ cd libcodr7
$ mkdir build
$ cd build
$ cmake ..
$ sudo make install
$ valgrind ./tests
list (h/c)
Intrusive, double linked list. Since one set of links is needed for each list, the maxiumum number of lists an item is placed in simultaneously needs to be static.
deque (h/c)
Deque with value semantics and pool allocated items.
tree (h/c)
Left leaning red/black tree with value semantics and pool allocated items.
chan (h/c)
Thread safe channel based on C11 threads using deque.
examples
Besides the commented test suite, you may find a real world example here.
license
support
Please consider a donation if you would like to support the project, every contribution helps.