summaryrefslogtreecommitdiff
path: root/docs/gsg/CXX/btree.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/gsg/CXX/btree.html')
-rw-r--r--docs/gsg/CXX/btree.html18
1 files changed, 11 insertions, 7 deletions
diff --git a/docs/gsg/CXX/btree.html b/docs/gsg/CXX/btree.html
index df45215d..a87c9610 100644
--- a/docs/gsg/CXX/btree.html
+++ b/docs/gsg/CXX/btree.html
@@ -13,7 +13,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>
@@ -416,7 +416,7 @@ try {
do not sort well when viewed as byte strings. There are
several solutions to this problem, one being to provide a
custom comparison function. See
- <a class="ulink" href="http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/am_misc_faq.html" target="_top">http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/am_misc_faq.html</a>
+ <a class="ulink" href="http://docs.oracle.com/cd/E17076_02/html/programmer_reference/am_misc_faq.html" target="_top">http://docs.oracle.com/cd/E17076_02/html/programmer_reference/am_misc_faq.html</a>
for more information.
</p>
</li>
@@ -473,10 +473,13 @@ try {
occur.
</p>
<p>
- The value that you provide to the <code class="methodname">set_bt_compare()</code> method
- is a pointer to a function that has the following signature:
- </p>
- <pre class="programlisting">int (*function)(Db *db, const Dbt *key1, const Dbt *key2)</pre>
+ The value that you provide to the
+ <code class="methodname">set_bt_compare()</code> method
+ is a pointer to a function that has the following signature:
+ </p>
+ <pre class="programlisting">
+int (*function)(Db *db, const Dbt *key1, const Dbt *key2, size_t *locp)
+ </pre>
<p>
This function must return an integer value less than, equal to,
or greater than 0. If key1 is considered to be greater than
@@ -499,10 +502,11 @@ try {
</p>
<a id="cxx_btree1"></a>
<pre class="programlisting">int
-compare_int(Db *dbp, const Dbt *a, const Dbt *b)
+compare_int(Db *dbp, const Dbt *a, const Dbt *b, size_t *locp)
{
int ai, bi;
+ locp = NULL;
// Returns:
// &lt; 0 if a &lt; b
// = 0 if a = b