diff options
Diffstat (limited to 'docs/gsg/C/btree.html')
-rw-r--r-- | docs/gsg/C/btree.html | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/docs/gsg/C/btree.html b/docs/gsg/C/btree.html index 2d86622b..8be34c89 100644 --- a/docs/gsg/C/btree.html +++ b/docs/gsg/C/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> @@ -428,7 +428,7 @@ if (ret != 0) { 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> @@ -485,10 +485,13 @@ if (ret != 0) { 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 @@ -513,10 +516,11 @@ if (ret != 0) { </p> <a id="c_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: * < 0 if a < b |