1<!--$Id: env_version.so,v 10.26 2004/09/28 15:04:20 bostic Exp $--> 2<!--Copyright (c) 1997,2008 Oracle. All rights reserved.--> 3<!--See the file LICENSE for redistribution information.--> 4<html> 5<head> 6<title>Berkeley DB: db_version</title> 7<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> 8<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++"> 9</head> 10<body bgcolor=white> 11<table width="100%"><tr valign=top> 12<td> 13<b>db_version</b> 14</td> 15<td align=right> 16<a href="/api_c/api_core.html"><img src="/images/api.gif" alt="API"></a> 17<a href="/ref/toc.html"><img src="/images/ref.gif" alt="Ref"></a></td> 18</tr></table> 19<hr size=1 noshade> 20<tt> 21<b><pre> 22#include <db.h> 23<p> 24char * 25db_version(int *major, int *minor, int *patch); 26</pre></b> 27<hr size=1 noshade> 28<b>Description: db_version</b> 29<p>The db_version method returns a pointer to a string, suitable for 30display, containing Berkeley DB version information.</p> 31<b>Parameters</b> <br> 32 <b>major</b><ul compact><li>If <b>major</b> is non-NULL, the major 33version of the Berkeley DB release is copied to the memory to which it refers.</ul> 34 <b>minor</b><ul compact><li>If <b>minor</b> is non-NULL, the minor version of the Berkeley DB release 35is copied to the memory to which it refers.</ul> 36 <b>patch</b><ul compact><li>If <b>patch</b> is non-NULL, the patch version of the Berkeley DB release 37is copied to the memory to which it refers.</ul> 38<br> 39<hr size=1 noshade> 40<br><b>Class</b> 41<a href="/api_c/env_class.html">DB_ENV</a> 42<br><b>See Also</b> 43<a href="/api_c/env_list.html">Database Environments and Related Methods</a> 44</tt> 45<table width="100%"><tr><td><br></td><td align=right> 46<a href="/api_c/api_core.html"><img src="/images/api.gif" alt="API"></a><a href="/ref/toc.html"><img src="/images/ref.gif" alt="Ref"></a> 47</td></tr></table> 48<p><font size=1>Copyright (c) 1996,2008 Oracle. All rights reserved.</font> 49</body> 50</html> 51