#include <db.h> char * db_version(int *major, int *minor, int *patch);
The
db_version()
method returns a pointer to a string, suitable for display,
containing Berkeley DB version information. For a method
that returns this information as well as Oracle release
numbers, see
db_full_version
.
If major is non-NULL, the major version of the Berkeley DB release is copied to the memory to which it refers.
If minor is non-NULL, the minor version of the Berkeley DB release is copied to the memory to which it refers.