jnhu76 / libcodr7

fundamental tools in the spirit of C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

rbtree (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

MIT

support

Please consider a donation if you would like to support the project, every contribution helps.

Donate using Liberapay

About

fundamental tools in the spirit of C

License:MIT License


Languages

Language:C 96.1%Language:CMake 2.4%Language:Go 1.4%