#include <db.h> int DB->get_dbname(DB *db, const char **filenamep, const char **dbnamep);
The DB->get_dbname()
method returns the filename and database
name used by the DB handle.
The DB->get_dbname()
method returns a non-zero error value on failure and 0 on success.
The filenamep parameter references memory into which a pointer to the current filename is copied.