2
<!--Copyright 1997-2002 by Sleepycat Software, Inc.-->
3
<!--All rights reserved.-->
4
<!--See the file LICENSE for redistribution information.-->
7
<title>Berkeley DB: DB_ENV->set_errpfx</title>
8
<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit.">
9
<meta name="keywords" content="embedded,database,programmatic,toolkit,b+tree,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,java,C,C++">
12
<a name="2"><!--meow--></a>
13
<table width="100%"><tr valign=top>
15
<h1>DB_ENV->set_errpfx</h1>
18
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../images/ref.gif" alt="Ref"></a>
26
DB_ENV->set_errpfx(DB_ENV *dbenv, const char *errpfx);
29
<p>Set the prefix string that appears before error messages issued by Berkeley DB.
30
<p>The <a href="../api_c/db_set_errpfx.html">DB->set_errpfx</a> and DB_ENV->set_errpfx methods do not copy
31
the memory to which the <b>errpfx</b> argument refers; rather, they
32
maintain a reference to it. Although this allows applications to modify
33
the error message prefix at any time (without repeatedly calling the
34
interfaces), it means the memory must be maintained until the handle is
36
<p>The DB_ENV->set_errpfx interface may be called at any time during the life of
39
<a href="../api_c/env_class.html">DB_ENV</a>
41
<a href="../api_c/env_list.html">Database Environments and Related Methods</a>
43
<table width="100%"><tr><td><br></td><td align=right>
44
<a href="../api_c/c_index.html"><img src="../images/api.gif" alt="API"></a><a href="../reftoc.html"><img src="../images/ref.gif" alt="Ref"></a>
46
<p><font size=1><a href="http://www.sleepycat.com">Copyright Sleepycat Software</a></font>