GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
dbh_set_size(3) DBHashTables Programmers' Manual dbh_set_size(3)
-

dbh_set_size, dbh_set_recordsize - set maximum or current record size

#include <dbh.h>

int dbh_set_size (DBHashTable *dbh, FILE_POINTERsize);
void dbh_set_recordsize (DBHashTable *dbh, int record_size );

Function dbh_set_size defines the maximum amount of memory to be allocated to the DBHashTable records. This is nonvolatile information which need to be set only once. The default is 1024 bytes.

Function dbh_set_recordsize sets the recordsize of the the data in the current DBHashTable and is called implicitly by calling dbh_set_data It is very important to call this function if dbh_set_data is not used. Unpredictable results will follow if record_size is not set. DBHashTable records are variable in length, so use this function at least once if you are planning to use fixed length records. Parameter record_size is the amount of bytes to be reserved for the current DBHashTable record data.

dbh_set_size returns 0 on error, 1 otherwise.

dbh_set_recordsize returns the amount of bytes in the current DBHashTable record.

dbh (0), dbh_update (3), dbh_writeheader (3), dbh_set_data (3), dbh_set_key (3)

Edscott Wilson Garcia <edscott@xfce.org>
DBH DBHashTables

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.