From: Benjamin Auder Date: Thu, 5 Feb 2015 19:14:32 +0000 (+0100) Subject: README.html X-Git-Url: https://git.auder.net/%7B%7B%20asset%28%27mixstore/images/doc/html/index.html?a=commitdiff_plain;h=f3b443e0e9c2be7e0c1371c7b49f53f2c6415f6a;p=cgds.git README.html --- 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.

diff --git a/README.md b/README.md deleted file mode 100644 index 3ac85d7..0000000 --- a/README.md +++ /dev/null @@ -1,16 +0,0 @@ -# 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. - -### Contact -benjamin [dot] a [at] mailoo.org