description | C generic data structures library |
last change | Tue, 9 Feb 2021 16:32:28 +0000 (17:32 +0100) |
URL | [public ] git://auder.net/cgds.git |
[private] git@auder.net:cgds.git |
Various data structures, from stack to tree, which can contain any data type.
make [src] make install ‘src’ is Makefile default target.
Vector* v = vector_new(int);
vector_push(v, 32);
vector_push(v, 42);
int a; vector_get(v, 1, a); //a now contains 42
vector_set(v, 0, 0); //v[0] now contains 0
vector_destroy(v);
More examples in the unit tests under test/ folder.
3 years ago | master | shortlog | log | tree |