summaryrefslogtreecommitdiff
path: root/docs/gsg/C/coreindexusage.html
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2015-02-17 17:25:57 +0000
committer <>2015-03-17 16:26:24 +0000
commit780b92ada9afcf1d58085a83a0b9e6bc982203d1 (patch)
tree598f8b9fa431b228d29897e798de4ac0c1d3d970 /docs/gsg/C/coreindexusage.html
parent7a2660ba9cc2dc03a69ddfcfd95369395cc87444 (diff)
downloadberkeleydb-master.tar.gz
Imported from /home/lorry/working-area/delta_berkeleydb/db-6.1.23.tar.gz.HEADdb-6.1.23master
Diffstat (limited to 'docs/gsg/C/coreindexusage.html')
-rw-r--r--docs/gsg/C/coreindexusage.html13
1 files changed, 6 insertions, 7 deletions
diff --git a/docs/gsg/C/coreindexusage.html b/docs/gsg/C/coreindexusage.html
index 2ad0b737..45add947 100644
--- a/docs/gsg/C/coreindexusage.html
+++ b/docs/gsg/C/coreindexusage.html
@@ -14,7 +14,7 @@
<body>
<div xmlns="" class="navheader">
<div class="libver">
- <p>Library Version 11.2.5.3</p>
+ <p>Library Version 12.1.6.1</p>
</div>
<table width="100%" summary="Navigation header">
<tr>
@@ -133,7 +133,7 @@
Remember that you can find the complete implementation of these functions
in:
</p>
- <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples_c/getting_started</pre>
+ <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples/c/getting_started</pre>
<p>
where <code class="literal"><span class="emphasis"><em>DB_INSTALL</em></span></code> is the location where you
placed your DB distribution.
@@ -222,8 +222,8 @@ get_item_name(DB *dbp, const DBT *pkey, const DBT *pdata, DBT *skey)
/* Now set the secondary key's data to be the item name */
memset(skey, 0, sizeof(DBT));
- skey-&gt;data = pdata-&gt;data + offset;
- skey-&gt;size = strlen(skey-&gt;data) + 1;
+ skey-&gt;data = (u_int8_t *)pdata-&gt;data + offset;
+ skey-&gt;size = (u_int32_t)strlen(skey-&gt;data) + 1;
return (0);
}</code></strong> </pre>
@@ -300,8 +300,7 @@ set_db_filenames(STOCK_DBS *my_stock)
int
open_database(DB **dbpp, /* The DB handle that we are opening */
const char *file_name, /* The file in which the db lives */
- const char *program_name, /* Name of the program calling this
- * function */
+ const char *program_name, /* Name of the program. */
FILE *error_file_pointer,
<strong class="userinput"><code>int is_secondary</code></strong>)
{
@@ -613,7 +612,7 @@ main(int argc, char *argv[])
application
in:
</p>
- <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples_c/getting_started</pre>
+ <pre class="programlisting"><span class="emphasis"><em>DB_INSTALL</em></span>/examples/c/getting_started</pre>
<p>
where <code class="literal"><span class="emphasis"><em>DB_INSTALL</em></span></code> is the location where you
placed your DB distribution.