Debian Codegraph @

docs/api_reference/C/envversion.html

raw symbols SCIP
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 xmlns="" class="navheader">
16 <div class="libver">
17 <p>Library Version 11.2.5.3</p>
18 </div>
19 <table width="100%" summary="Navigation header">
20 <tr>
21 <th colspan="3" align="center">db_version</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="envstrerror.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 5. 
26 The DB_ENV Handle
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="lock.html">Next</a></td>
29 </tr>
30 </table>
31 <hr />
32 </div>
33 <div class="sect1" lang="en" xml:lang="en">
34 <div class="titlepage">
35 <div>
36 <div>
37 <h2 class="title" style="clear: both"><a id="envversion"></a>db_version</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db.h&gt;
42
43 char *
44 db_version(int *major, int *minor, int *patch); </pre>
45 <p>
46 The
47 <code class="methodname">db_version()</code>
48
49 method returns a pointer to a string, suitable for display,
50 containing Berkeley DB version information. For a method
51 that returns this information as well as Oracle release
52 numbers, see
53 <a class="xref" href="envfullversion.html" title="db_full_version">db_full_version</a>.
54 </p>
55 <div class="sect2" lang="en" xml:lang="en">
56 <div class="titlepage">
57 <div>
58 <div>
59 <h3 class="title"><a id="idp52380680"></a>Parameters</h3>
60 </div>
61 </div>
62 </div>
63 <div class="sect3" lang="en" xml:lang="en">
64 <div class="titlepage">
65 <div>
66 <div>
67 <h4 class="title"><a id="idp52381048"></a>major</h4>
68 </div>
69 </div>
70 </div>
71 <p>
72 If <span class="bold"><strong>major</strong></span> is non-NULL, the major
73 version of the Berkeley DB release is copied to the memory to which it
74 refers.
75 </p>
76 </div>
77 <div class="sect3" lang="en" xml:lang="en">
78 <div class="titlepage">
79 <div>
80 <div>
81 <h4 class="title"><a id="idp52386584"></a>minor</h4>
82 </div>
83 </div>
84 </div>
85 <p>
86 If <span class="bold"><strong>minor</strong></span> is non-NULL, the minor
87 version of the Berkeley DB release is copied to the memory to which it
88 refers.
89 </p>
90 </div>
91 <div class="sect3" lang="en" xml:lang="en">
92 <div class="titlepage">
93 <div>
94 <div>
95 <h4 class="title"><a id="idp52346368"></a>patch</h4>
96 </div>
97 </div>
98 </div>
99 <p>
100 If <span class="bold"><strong>patch</strong></span> is non-NULL, the patch
101 version of the Berkeley DB release is copied to the memory to which it
102 refers.
103 </p>
104 </div>
105 </div>
106 <div class="sect2" lang="en" xml:lang="en">
107 <div class="titlepage">
108 <div>
109 <div>
110 <h3 class="title"><a id="idp52389672"></a>Class</h3>
111 </div>
112 </div>
113 </div>
114 <p>
115 <a class="link" href="env.html" title="Chapter 5.  The DB_ENV Handle">DB_ENV</a>
116 </p>
117 </div>
118 <div class="sect2" lang="en" xml:lang="en">
119 <div class="titlepage">
120 <div>
121 <div>
122 <h3 class="title"><a id="idp52384752"></a>See Also</h3>
123 </div>
124 </div>
125 </div>
126 <p>
127 <a class="xref" href="env.html#envlist" title="Database Environments and Related Methods">Database Environments and Related Methods</a>
128 </p>
129 </div>
130 </div>
131 <div class="navfooter">
132 <hr />
133 <table width="100%" summary="Navigation footer">
134 <tr>
135 <td width="40%" align="left"><a accesskey="p" href="envstrerror.html">Prev</a> </td>
136 <td width="20%" align="center">
137 <a accesskey="u" href="env.html">Up</a>
138 </td>
139 <td width="40%" align="right"> <a accesskey="n" href="lock.html">Next</a></td>
140 </tr>
141 <tr>
142 <td width="40%" align="left" valign="top">db_strerror </td>
143 <td width="20%" align="center">
144 <a accesskey="h" href="index.html">Home</a>
145 </td>
146 <td width="40%" align="right" valign="top"> Chapter 6. 
147 The DB_LOCK Handle
148 </td>
149 </tr>
150 </table>
151 </div>
152 </body>
153 </html>