X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=README.html;fp=README.html;h=96e9a0f868955242ca6e86b2f6f9b2a4298fc31f;hb=f3b443e0e9c2be7e0c1371c7b49f53f2c6415f6a;hp=0000000000000000000000000000000000000000;hpb=012c97ddf103ecd983df2520f87ca0c31010f9f2;p=cgds.git diff --git a/README.html b/README.html new file mode 100644 index 0000000..96e9a0f --- /dev/null +++ b/README.html @@ -0,0 +1,14 @@ +

cgds: C Generic Data Structures library

+ +

Various data structures, from stack to tree, which can contain any data type.

+ +

Example

+ +
    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.