1<?xml version="1.0" encoding="UTF-8" standalone="no"?> 2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 3<html xmlns="http://www.w3.org/1999/xhtml"> 4 <head> 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 6 <title>DbEnv::version()</title> 7 <link rel="stylesheet" href="apiReference.css" type="text/css" /> 8 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> 9 <link rel="start" href="index.html" title="Berkeley DB C++ API Reference" /> 10 <link rel="up" href="env.html" title="Chapter 5. The DbEnv Handle" /> 11 <link rel="prev" href="envstrerror.html" title="DbEnv::strerror()" /> 12 <link rel="next" href="dbexception.html" title="Chapter 6. The DbException Class" /> 13 </head> 14 <body> 15 <div class="navheader"> 16 <table width="100%" summary="Navigation header"> 17 <tr> 18 <th colspan="3" align="center">DbEnv::version()</th> 19 </tr> 20 <tr> 21 <td width="20%" align="left"><a accesskey="p" href="envstrerror.html">Prev</a> </td> 22 <th width="60%" align="center">Chapter 5. 23 The DbEnv Handle 24 </th> 25 <td width="20%" align="right"> <a accesskey="n" href="dbexception.html">Next</a></td> 26 </tr> 27 </table> 28 <hr /> 29 </div> 30 <div class="sect1" lang="en" xml:lang="en"> 31 <div class="titlepage"> 32 <div> 33 <div> 34 <h2 class="title" style="clear: both"><a id="envversion"></a>DbEnv::version()</h2> 35 </div> 36 </div> 37 </div> 38 <pre class="programlisting">#include <db_cxx.h> 39 40static char * 41DbEnv::version(int *major, int *minor, int *patch); </pre> 42 <p> 43 The 44 45 <code class="methodname">DbEnv::version()</code> 46 method returns a pointer to a string, suitable for 47 display, containing Berkeley DB version information. 48 </p> 49 <div class="sect2" lang="en" xml:lang="en"> 50 <div class="titlepage"> 51 <div> 52 <div> 53 <h3 class="title"><a id="id1677020"></a>Parameters</h3> 54 </div> 55 </div> 56 </div> 57 <div class="sect3" lang="en" xml:lang="en"> 58 <div class="titlepage"> 59 <div> 60 <div> 61 <h4 class="title"><a id="id1676990"></a>major</h4> 62 </div> 63 </div> 64 </div> 65 <p> 66 If <span class="bold"><strong>major</strong></span> is non-NULL, the major 67 version of the Berkeley DB release is copied to the memory to which it 68 refers. 69 </p> 70 </div> 71 <div class="sect3" lang="en" xml:lang="en"> 72 <div class="titlepage"> 73 <div> 74 <div> 75 <h4 class="title"><a id="id1677264"></a>minor</h4> 76 </div> 77 </div> 78 </div> 79 <p> 80 If <span class="bold"><strong>minor</strong></span> is non-NULL, the minor 81 version of the Berkeley DB release is copied to the memory to which it 82 refers. 83 </p> 84 </div> 85 <div class="sect3" lang="en" xml:lang="en"> 86 <div class="titlepage"> 87 <div> 88 <div> 89 <h4 class="title"><a id="id1677272"></a>patch</h4> 90 </div> 91 </div> 92 </div> 93 <p> 94 If <span class="bold"><strong>patch</strong></span> is non-NULL, the patch 95 version of the Berkeley DB release is copied to the memory to which it 96 refers. 97 </p> 98 </div> 99 </div> 100 <div class="sect2" lang="en" xml:lang="en"> 101 <div class="titlepage"> 102 <div> 103 <div> 104 <h3 class="title"><a id="id1677092"></a>Class</h3> 105 </div> 106 </div> 107 </div> 108 <p> 109 <a class="link" href="env.html" title="Chapter 5. The DbEnv Handle">DbEnv</a> 110 </p> 111 </div> 112 <div class="sect2" lang="en" xml:lang="en"> 113 <div class="titlepage"> 114 <div> 115 <div> 116 <h3 class="title"><a id="id1677159"></a>See Also</h3> 117 </div> 118 </div> 119 </div> 120 <p> 121 <a class="xref" href="env.html#envlist" title="Database Environments and Related Methods">Database Environments and Related Methods</a> 122 </p> 123 </div> 124 </div> 125 <div class="navfooter"> 126 <hr /> 127 <table width="100%" summary="Navigation footer"> 128 <tr> 129 <td width="40%" align="left"><a accesskey="p" href="envstrerror.html">Prev</a> </td> 130 <td width="20%" align="center"> 131 <a accesskey="u" href="env.html">Up</a> 132 </td> 133 <td width="40%" align="right"> <a accesskey="n" href="dbexception.html">Next</a></td> 134 </tr> 135 <tr> 136 <td width="40%" align="left" valign="top">DbEnv::strerror() </td> 137 <td width="20%" align="center"> 138 <a accesskey="h" href="index.html">Home</a> 139 </td> 140 <td width="40%" align="right" valign="top"> Chapter 6. The DbException Class</td> 141 </tr> 142 </table> 143 </div> 144 </body> 145</html> 146