commit | 06c9a9f64586d2ab7b88a32e407b8f5ca3c0912e | [log] [tgz] |
---|---|---|
author | Marc Kupietz <kupietz@ids-mannheim.de> | Tue Jan 02 16:56:43 2018 +0100 |
committer | Marc Kupietz <kupietz@ids-mannheim.de> | Tue Jan 02 16:56:43 2018 +0100 |
tree | 4735c8be977e459fc212c8bd463ada84fb7d0674 | |
parent | 4b799e94c31b98bfb391fe8a28194712455f0e91 [diff] [blame] |
collocatordb: add c api
diff --git a/c_testcdb.c b/c_testcdb.c new file mode 100644 index 0000000..34f05ec --- /dev/null +++ b/c_testcdb.c
@@ -0,0 +1,13 @@ +#include <stdio.h> +#include <stdlib.h> +#include <math.h> +#include "collocatordb.h" + +int main() { + COLLOCATORS *cdb = open_collocators("/tmp/test2"); + inc_collocators(cdb, 2000, 2000, 4); + inc_collocators(cdb, 2000, 2001, 4); + inc_collocators(cdb, 2000, 2002, 4); + dump_collocators(cdb, 2000, 0, 0); + return 0; +}