projects
/
cgds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some fixes + improvements (Vector) + code reformatting
[cgds.git]
/
README.md
diff --git
a/README.md
b/README.md
index
3ac85d7
..
c7cd81d
100644
(file)
--- a/
README.md
+++ b/
README.md
@@
-2,8
+2,15
@@
Various data structures, from stack to tree, which can contain any data type.
Various data structures, from stack to tree, which can contain any data type.
-### Example
- Vector v = vector_new(int);
+## Installation
+
+ 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_push(v, 32);
vector_push(v, 42);
int a; vector_get(v, 1, a); //a now contains 42
@@
-11,6
+18,3
@@
Various data structures, from stack to tree, which can contain any data type.
vector_destroy(v);
More examples in the unit tests under test/ folder.
vector_destroy(v);
More examples in the unit tests under test/ folder.
-
-### Contact
-benjamin [dot] a [at] mailoo.org