1<?xml version="1.0" encoding="UTF-8" standalone="no"?> 2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 3<html xmlns="http://www.w3.org/1999/xhtml"> 4 <head> 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 6 <title>DB_MULTIPLE_NEXT</title> 7 <link rel="stylesheet" href="apiReference.css" type="text/css" /> 8 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> 9 <link rel="start" href="index.html" title="Berkeley DB C API Reference" /> 10 <link rel="up" href="dbt.html" title="Chapter 4. The DBT Handle" /> 11 <link rel="prev" href="DB_MULTIPLE_INIT.html" title="DB_MULTIPLE_INIT" /> 12 <link rel="next" href="DB_MULTIPLE_KEY_NEXT.html" title="DB_MULTIPLE_KEY_NEXT" /> 13 </head> 14 <body> 15 <div class="navheader"> 16 <table width="100%" summary="Navigation header"> 17 <tr> 18 <th colspan="3" align="center">DB_MULTIPLE_NEXT</th> 19 </tr> 20 <tr> 21 <td width="20%" align="left"><a accesskey="p" href="DB_MULTIPLE_INIT.html">Prev</a> </td> 22 <th width="60%" align="center">Chapter 4. 23 The DBT Handle 24 </th> 25 <td width="20%" align="right"> <a accesskey="n" href="DB_MULTIPLE_KEY_NEXT.html">Next</a></td> 26 </tr> 27 </table> 28 <hr /> 29 </div> 30 <div class="sect1" lang="en" xml:lang="en"> 31 <div class="titlepage"> 32 <div> 33 <div> 34 <h2 class="title" style="clear: both"><a id="DB_MULTIPLE_NEXT"></a>DB_MULTIPLE_NEXT</h2> 35 </div> 36 </div> 37 </div> 38 <pre class="programlisting">#include <db.h> 39 40DB_MULTIPLE_NEXT(void *pointer, DBT *data, void *retdata, 41 size_t retdlen); </pre> 42 <p> 43 If either of the 44 <a class="link" href="dbcget.html#dbcget_DB_MULTIPLE">DB_MULTIPLE</a> 45 or 46 <a class="link" href="dbcget.html#dbcget_DB_MULTIPLE_KEY">DB_MULTIPLE_KEY</a> 47 flags were specified to the <a class="xref" href="dbget.html" title="DB->get()">DB->get()</a> or 48 <a class="xref" href="dbcget.html" title="DBcursor->get()">DBcursor->get()</a> methods, the data 49 <a class="link" href="dbt.html" title="Chapter 4. The DBT Handle">DBT</a> returned by those interfaces will 50 refer to a buffer that is filled with data. Access to that data is through the 51 DB_MULTIPLE_* macros. 52 </p> 53 <p> 54 Returns the next <a class="link" href="dbt.html" title="Chapter 4. The DBT Handle">DBT</a> in the bulk 55 retrieval set. 56 </p> 57 <div class="sect2" lang="en" xml:lang="en"> 58 <div class="titlepage"> 59 <div> 60 <div> 61 <h3 class="title"><a id="id1657540"></a>Parameters</h3> 62 </div> 63 </div> 64 </div> 65 <div class="sect3" lang="en" xml:lang="en"> 66 <div class="titlepage"> 67 <div> 68 <div> 69 <h4 class="title"><a id="id1658358"></a>pointer</h4> 70 </div> 71 </div> 72 </div> 73 <p> 74 The <span class="bold"><strong>pointer</strong></span> parameter is a variable 75 that must have been initialized by a call to 76 <a class="xref" href="DB_MULTIPLE_INIT.html" title="DB_MULTIPLE_INIT">DB_MULTIPLE_INIT</a>. 77 </p> 78 <p> 79 This parameter is set to NULL if there are no more key/data pairs in 80 the returned set. 81 </p> 82 </div> 83 <div class="sect3" lang="en" xml:lang="en"> 84 <div class="titlepage"> 85 <div> 86 <div> 87 <h4 class="title"><a id="id1658446"></a>data</h4> 88 </div> 89 </div> 90 </div> 91 <p> 92 The <span class="bold"><strong>data</strong></span> parameter is a 93 <a class="link" href="dbt.html" title="Chapter 4. The DBT Handle">DBT</a> structure returned from a 94 successful call to <a class="xref" href="dbget.html" title="DB->get()">DB->get()</a> or 95 <a class="xref" href="dbcget.html" title="DBcursor->get()">DBcursor->get()</a> for which he 96 <a class="link" href="dbcget.html#dbcget_DB_MULTIPLE">DB_MULTIPLE</a> 97 flag was specified. 98 </p> 99 <p> 100 The <span class="bold"><strong>data</strong></span> parameter must have been initialized by 101 a call to <a class="xref" href="DB_MULTIPLE_INIT.html" title="DB_MULTIPLE_INIT">DB_MULTIPLE_INIT</a>. 102 </p> 103 </div> 104 <div class="sect3" lang="en" xml:lang="en"> 105 <div class="titlepage"> 106 <div> 107 <div> 108 <h4 class="title"><a id="id1658509"></a>retdata</h4> 109 </div> 110 </div> 111 </div> 112 <p> 113 The <span class="bold"><strong>retdata</strong></span> is set 114 to the next data element in the returned set. 115 </p> 116 </div> 117 <div class="sect3" lang="en" xml:lang="en"> 118 <div class="titlepage"> 119 <div> 120 <div> 121 <h4 class="title"><a id="id1657694"></a>retdlen</h4> 122 </div> 123 </div> 124 </div> 125 <p> 126 The <span class="bold"><strong>retdlen</strong></span> parameter is set to 127 the length, in bytes, of that data element. When used with the Queue and 128 Recno access methods, <span class="bold"><strong>retdata</strong></span> parameter 129 will be set to NULL for deleted records. 130 </p> 131 </div> 132 </div> 133 <div class="sect2" lang="en" xml:lang="en"> 134 <div class="titlepage"> 135 <div> 136 <div> 137 <h3 class="title"><a id="id1658454"></a>Class</h3> 138 </div> 139 </div> 140 </div> 141 <p> 142 <a class="link" href="dbt.html" title="Chapter 4. The DBT Handle">DBT</a> 143 </p> 144 </div> 145 <div class="sect2" lang="en" xml:lang="en"> 146 <div class="titlepage"> 147 <div> 148 <div> 149 <h3 class="title"><a id="id1658294"></a>See Also</h3> 150 </div> 151 </div> 152 </div> 153 <p> 154 <a class="xref" href="dbt.html#dbtlist" title="DBT and Bulk Operations">DBT and Bulk Operations</a> 155 </p> 156 </div> 157 </div> 158 <div class="navfooter"> 159 <hr /> 160 <table width="100%" summary="Navigation footer"> 161 <tr> 162 <td width="40%" align="left"><a accesskey="p" href="DB_MULTIPLE_INIT.html">Prev</a> </td> 163 <td width="20%" align="center"> 164 <a accesskey="u" href="dbt.html">Up</a> 165 </td> 166 <td width="40%" align="right"> <a accesskey="n" href="DB_MULTIPLE_KEY_NEXT.html">Next</a></td> 167 </tr> 168 <tr> 169 <td width="40%" align="left" valign="top">DB_MULTIPLE_INIT </td> 170 <td width="20%" align="center"> 171 <a accesskey="h" href="index.html">Home</a> 172 </td> 173 <td width="40%" align="right" valign="top"> DB_MULTIPLE_KEY_NEXT</td> 174 </tr> 175 </table> 176 </div> 177 </body> 178</html> 179