X-Git-Url: https://git.auder.net/?p=cgds.git;a=blobdiff_plain;f=README.md;fp=README.md;h=c7cd81d2cba3d0cd13593e0fc77e463fce268bd0;hp=342d2d6728067ea2e70b940814a6213e3fa1e922;hb=e45132acdb58c076d5e06849fa51c26de9a7486d;hpb=1ff641f9960fa6c6081817a5641afb22fad91dcd diff --git a/README.md b/README.md index 342d2d6..c7cd81d 100644 --- a/README.md +++ b/README.md @@ -4,17 +4,17 @@ Various data structures, from stack to tree, which can contain any data type. ## Installation - make [src] - make install + make [src] + make install 'src' is Makefile default target. ## 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); + 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.