• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/db-4.8.30/docs/api_reference/C/
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>db_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 DB_ENV Handle" />
11    <link rel="prev" href="envstrerror.html" title="db_strerror" />
12    <link rel="next" href="lock.html" title="Chapter��6.�� The DB_LOCK Handle" />
13  </head>
14  <body>
15    <div class="navheader">
16      <table width="100%" summary="Navigation header">
17        <tr>
18          <th colspan="3" align="center">db_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 DB_ENV Handle
24        </th>
25          <td width="20%" align="right">��<a accesskey="n" href="lock.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>db_version</h2>
35          </div>
36        </div>
37      </div>
38      <pre class="programlisting">#include &lt;db.h&gt;
39
40char *
41db_version(int *major, int *minor, int *patch);  </pre>
42      <p>
43         The 
44         <code class="methodname">db_version()</code> 
45          
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="id1673966"></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="id1674008"></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="id1673860"></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="id1674295"></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="id1673477"></a>Class</h3>
105            </div>
106          </div>
107        </div>
108        <p>
109                <a class="link" href="env.html" title="Chapter��5.�� The DB_ENV Handle">DB_ENV</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="id1673912"></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="lock.html">Next</a></td>
134        </tr>
135        <tr>
136          <td width="40%" align="left" valign="top">db_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.��
141                The DB_LOCK Handle
142        </td>
143        </tr>
144      </table>
145    </div>
146  </body>
147</html>
148