cgds.git
descriptionC generic data structures library
last changeTue, 9 Feb 2021 16:32:28 +0000 (17:32 +0100)

cgds: C Generic Data Structures library

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

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_set(v, 0, 0); //v[0] now contains 0
vector_destroy(v);

More examples in the unit tests under test/ folder.

shortlog
2021-02-09 Benjamin AuderSome fixes + improvements (Vector) + code reformatting master
2021-02-07 Benjamin AuderAdd basic Set implementation - TODO: add iterators...
2021-02-04 Benjamin Auder[Tree] add_child and add_sibling now return inserted...
2021-02-04 Benjamin AuderVarious small fixes
2021-02-03 Benjamin AuderNow using 2 spaces instead of tabs. Fix copyright years...
2021-02-03 Benjamin AuderImplement HashTable + fix some extra blank spaces,...
2018-01-29 Benjamin Audercosmetics
2018-01-29 Benjamin AuderSimplify installation procedure
2017-12-16 Benjamin AuderFix typo + cosmetics
2017-03-23 Benjamin AuderMerge branch 'master' of auder.net:cgds
2017-03-23 Benjamin Auder'update'
2017-03-18 Benjamin Auderfix typo in README
2016-12-13 Benjamin Auderupdate
2016-10-20 Benjamin Auderversion 1.0
2016-07-22 Benjamin Auderfix typo in readme
2016-07-22 Benjamin Auderfix markdowné
...
heads
16 months ago master