• 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_strerror</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="envstat.html" title="DB_ENV-&gt;stat_print()" />
12    <link rel="next" href="envversion.html" title="db_version" />
13  </head>
14  <body>
15    <div class="navheader">
16      <table width="100%" summary="Navigation header">
17        <tr>
18          <th colspan="3" align="center">db_strerror</th>
19        </tr>
20        <tr>
21          <td width="20%" align="left"><a accesskey="p" href="envstat.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="envversion.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="envstrerror"></a>db_strerror</h2>
35          </div>
36        </div>
37      </div>
38      <pre class="programlisting">#include &lt;db.h&gt;
39
40char *
41db_strerror(int error);  </pre>
42      <p>
43         The <code class="methodname">db_strerror()</code>
44         
45         method returns an error message string corresponding
46         to the error number <span class="bold"><strong>error</strong></span> parameter.
47    </p>
48      <p>
49         This function is a superset of the ANSI C X3.159-1989 (ANSI C)
50         <span class="bold"><strong>strerror</strong></span>(3) function.  If the error
51         number <span class="bold"><strong>error</strong></span> is greater than or equal
52         to 0, then the string returned by the system function <span class="bold"><strong>strerror</strong></span>(3) is returned.  If the error number
53         is less than 0, an error string appropriate to the corresponding
54         Berkeley DB library error is returned. See <a href="../../programmer_reference/program_errorret.html" class="olink">Error returns to applications</a> for more information.
55    </p>
56      <div class="sect2" lang="en" xml:lang="en">
57        <div class="titlepage">
58          <div>
59            <div>
60              <h3 class="title"><a id="id1673914"></a>Parameters</h3>
61            </div>
62          </div>
63        </div>
64        <div class="sect3" lang="en" xml:lang="en">
65          <div class="titlepage">
66            <div>
67              <div>
68                <h4 class="title"><a id="id1674081"></a>error</h4>
69              </div>
70            </div>
71          </div>
72          <p>
73                          The <span class="bold"><strong>error</strong></span> parameter is the error
74                          number for which an error message string is wanted.
75                     </p>
76        </div>
77      </div>
78      <div class="sect2" lang="en" xml:lang="en">
79        <div class="titlepage">
80          <div>
81            <div>
82              <h3 class="title"><a id="id1674151"></a>Class</h3>
83            </div>
84          </div>
85        </div>
86        <p>
87                <a class="link" href="env.html" title="Chapter��5.�� The DB_ENV Handle">DB_ENV</a>  
88            </p>
89      </div>
90      <div class="sect2" lang="en" xml:lang="en">
91        <div class="titlepage">
92          <div>
93            <div>
94              <h3 class="title"><a id="id1673978"></a>See Also</h3>
95            </div>
96          </div>
97        </div>
98        <p>
99                     <a class="xref" href="env.html#envlist" title="Database Environments and Related Methods">Database Environments and Related Methods</a> 
100                </p>
101      </div>
102    </div>
103    <div class="navfooter">
104      <hr />
105      <table width="100%" summary="Navigation footer">
106        <tr>
107          <td width="40%" align="left"><a accesskey="p" href="envstat.html">Prev</a>��</td>
108          <td width="20%" align="center">
109            <a accesskey="u" href="env.html">Up</a>
110          </td>
111          <td width="40%" align="right">��<a accesskey="n" href="envversion.html">Next</a></td>
112        </tr>
113        <tr>
114          <td width="40%" align="left" valign="top">DB_ENV-&gt;stat_print()��</td>
115          <td width="20%" align="center">
116            <a accesskey="h" href="index.html">Home</a>
117          </td>
118          <td width="40%" align="right" valign="top">��db_version</td>
119        </tr>
120      </table>
121    </div>
122  </body>
123</html>
124