+/*
+ * Show the databases that tic knows about. The location to which it writes is
+ * always the first one. If that is not writable, then tic errors out before
+ * reaching this function.
+ */
+static void
+show_databases(void)
+{
+ DBDIRS state;
+ int offset;
+ const char *path;
+
+ _nc_first_db(&state, &offset);
+ while ((path = _nc_next_db(&state, &offset)) != 0) {
+ printf("%s\n", path);
+ }
+ _nc_last_db();
+}
+