6 * ntdb - Next Generation Trivial Database
13 * int main(int argc, char *argv[])
15 * NTDB_DATA key = ntdb_mkdata("key", 3);
16 * NTDB_DATA val = ntdb_mkdata("val", 3);
18 * ntdb = ntdb_open("example.ntdb", NTDB_DEFAULT,
19 * O_RDWR | O_CREAT | O_TRUNC, 0600, NULL);
21 * errx(1, "failed to open database file");
23 * ntdb_store(ntdb, key, val, NTDB_INSERT);
30 * License: LGPL (v3 or any later version)
31 * Authors: Rusty Russell
40 int main(int argc, char *argv[])
45 if (strcmp(argv[1], "depends") == 0)