= 0; j &lt; 10; j++) {
            /* Set up our key and values DBTs */
            memset(&amp;key, 0, sizeof(DBT));
            key.data = key_strings[j];
            key.size = (strlen(key_strings[j]) + 1) * sizeof(char);

            memset(&amp;value, 0, sizeof(DBT));
            payload = rand() + i;
            value.data = &amp;payload;
            value.size = sizeof(int);

            /* Perform the database put. */
            switch (ret = dbp-&gt;put(dbp, txn, &amp;key, &amp;value, 0)) {
      