3ac85d7d3d6b63a10ad7655b613e7a3c63e85ba0
[cgds.git] / README.md
1 # cgds: C Generic Data Structures library
2
3 Various data structures, from stack to tree, which can contain any data type.
4
5 ### Example
6 Vector v = vector_new(int);
7 vector_push(v, 32);
8 vector_push(v, 42);
9 int a; vector_get(v, 1, a); //a now contains 42
10 vector_set(v, 0, 0); //v[0] now contains 0
11 vector_destroy(v);
12
13 More examples in the unit tests under test/ folder.
14
15 ### Contact
16 benjamin [dot] a [at] mailoo.org