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