1<!--$Id: db_set_re_pad.so,v 10.37 2004/09/28 15:04:19 bostic Exp $--> 2<!--Copyright (c) 1997,2008 Oracle. All rights reserved.--> 3<!--See the file LICENSE for redistribution information.--> 4<html> 5<head> 6<title>Berkeley DB: DB->set_re_pad</title> 7<meta name="description" content="Berkeley DB: An embedded database programmatic toolkit."> 8<meta name="keywords" content="embedded,database,programmatic,toolkit,btree,hash,hashing,transaction,transactions,locking,logging,access method,access methods,Java,C,C++"> 9</head> 10<body bgcolor=white> 11<table width="100%"><tr valign=top> 12<td> 13<b>DB->set_re_pad</b> 14</td> 15<td align=right> 16<a href="../api_c/api_core.html"><img src="../images/api.gif" alt="API"></a> 17<a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a></td> 18</tr></table> 19<hr size=1 noshade> 20<tt> 21<b><pre> 22#include <db.h> 23<p> 24int 25DB->set_re_pad(DB *db, int re_pad); 26<p> 27int 28DB->get_re_pad(DB *db, int *re_padp); 29</pre></b> 30<hr size=1 noshade> 31<b>Description: DB->set_re_pad</b> 32<p>Set the padding character for short, fixed-length records for the Queue 33and Recno access methods.</p> 34<p>If no pad character is specified, <space> characters (that 35is, ASCII 0x20) are used for padding.</p> 36<p>The DB->set_re_pad method configures a database, not only operations performed 37using the specified <a href="../api_c/db_class.html">DB</a> handle.</p> 38<p>The DB->set_re_pad method may not be called after the <a href="../api_c/db_open.html">DB->open</a> method is called. 39If the database already exists when 40<a href="../api_c/db_open.html">DB->open</a> is called, the information specified to DB->set_re_pad will 41be ignored. 42</p> 43<p>The DB->set_re_pad method 44returns a non-zero error value on failure 45and 0 on success. 46</p> 47<b>Parameters</b> <br> 48 <b>re_pad</b><ul compact><li>The <b>re_pad</b> parameter is the pad character for fixed-length 49records for the Queue and Recno access methods.</ul> 50<br> 51<br><b>Errors</b> 52<p>The DB->set_re_pad method 53may fail and return one of the following non-zero errors:</p> 54<br> 55<b>EINVAL</b><ul compact><li>If the method was called after <a href="../api_c/db_open.html">DB->open</a> was called; or if an 56invalid flag value or parameter was specified.</ul> 57<br> 58<hr size=1 noshade> 59<b>Description: DB->get_re_pad</b> 60<p>The DB->get_re_pad method returns the pad character.</p> 61<p>The DB->get_re_pad method may be called at any time during the life of the 62application.</p> 63<p>The DB->get_re_pad method 64returns a non-zero error value on failure 65and 0 on success. 66</p> 67<b>Parameters</b> <br> 68 <b>re_padp</b><ul compact><li>The DB->get_re_pad method returns the 69pad character in <b>re_padp</b>.</ul> 70<br> 71<hr size=1 noshade> 72<br><b>Class</b> 73<a href="../api_c/db_class.html">DB</a> 74<br><b>See Also</b> 75<a href="../api_c/db_list.html">Databases and Related Methods</a> 76</tt> 77<table width="100%"><tr><td><br></td><td align=right> 78<a href="../api_c/api_core.html"><img src="../images/api.gif" alt="API"></a><a href="../ref/toc.html"><img src="../images/ref.gif" alt="Ref"></a> 79</td></tr></table> 80<p><font size=1>Copyright (c) 1996,2008 Oracle. All rights reserved.</font> 81</body> 82</html> 83