diff options
Diffstat (limited to 'docs/gsg/C/coreindexusage.html')
-rw-r--r-- | docs/gsg/C/coreindexusage.html | 13 |
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->data = pdata->data + offset; - skey->size = strlen(skey->data) + 1; + skey->data = (u_int8_t *)pdata->data + offset; + skey->size = (u_int32_t)strlen(skey->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. |