6 * ntdb - Next Generation Trivial Database
8 * This package provides an experimental persistent keyword/data store.
9 * Its main advantage over tdb is that it's 64-bit.
15 * #include <ccan/ntdb/ntdb.h>
17 * int main(int argc, char *argv[])
19 * NTDB_DATA key = ntdb_mkdata("key", 3);
20 * NTDB_DATA val = ntdb_mkdata("val", 3);
21 * struct ntdb_context *ntdb;
23 * ntdb = ntdb_open("example.ntdb", NTDB_DEFAULT,
24 * O_RDWR | O_CREAT | O_TRUNC, 0600, NULL);
26 * errx(1, "failed to open database file");
28 * ntdb_store(ntdb, key, val, NTDB_INSERT);
35 * License: LGPL (v3 or any later version)
36 * Authors: Rusty Russell
44 * Maintainer: Rusty Russell <rusty@rustcorp.com.au>
46 int main(int argc, char *argv[])
51 if (strcmp(argv[1], "depends") == 0) {
52 printf("ccan/asearch\n");
53 printf("ccan/build_assert\n");
54 printf("ccan/cast\n");
55 printf("ccan/compiler\n");
56 printf("ccan/endian\n");
57 printf("ccan/hash\n");
58 printf("ccan/ilog\n");
59 printf("ccan/likely\n");
60 printf("ccan/tally\n");
61 printf("ccan/typesafe_cb\n");
65 if (strcmp(argv[1], "testdepends") == 0) {
66 printf("ccan/failtest\n");