Library Version 18.1.40

DB_ENV->get_home()
Prev | Chapter 5. The DB_ENV Handle | Next

## DB_ENV->get_home()

    #include <db.h>

    int
    DB_ENV->get_home(DB_ENV *dbenv, const char **homep);

The `DB_ENV->get_home()` method returns the database environment home directory. This directory is normally identified when the DB_ENV->open() method is called.

The `DB_ENV->get_home()` method may be called at any time during the life of the application.

The `DB_ENV->get_home()` method returns a non-zero error value on failure and 0 on success.

### Class

DB_ENV

### See Also

Database Environments and Related Methods

Prev | Up | Next
DB_ENV->get_flags() | Home | DB_ENV->get_intermediate_dir_mode()