# DbEnv::version

`

###

    #include <db_cxx.h>

    static char *
    DbEnv::version(int *major, int *minor, int *patch);

# Description

The DbEnv::version method returns a pointer to a string containing Berkeley DB version information. If major is non-NULL, the major version of the Berkeley DB release is stored in the memory it references. If minor is non-NULL, the minor version of the Berkeley DB release is stored in the memory it references. If patch is non-NULL, the patch version of the Berkeley DB release is stored in the memory it references.

### Class

DbEnv

# See Also

DbEnv::close, DbEnv::open, DbEnv::remove, DbEnv::err, DbEnv::strerror, DbEnv::version, DbEnv::set_cachesize, DbEnv::set_errcall, DbEnv::set_errfile, DbEnv::set_error_stream, DbEnv::set_errpfx, DbEnv::set_flags, DbEnv::set_mutexlocks, DbEnv::set_paniccall, and DbEnv::set_verbose.`

Copyright Sleepycat Software