1dbh_set_size(3)        DBHashTables Programmers' Manual        dbh_set_size(3)
2
3
4
5
6

NAME

8       dbh_set_size, dbh_set_recordsize - set maximum or current record size
9

SYNOPSIS

11       #include <dbh.h>
12
13       int dbh_set_size (DBHashTable *dbh, FILE_POINTERsize);
14       void dbh_set_recordsize (DBHashTable *dbh, int record_size );
15

DESCRIPTION

17       Function  dbh_set_size defines the maximum amount of memory to be allo‐
18       cated to the DBHashTable records. This is nonvolatile information which
19       need to be set only once.  The default is 1024 bytes.
20
21       Function  dbh_set_recordsize sets the recordsize of the the data in the
22       current DBHashTable and is called implicitly by calling dbh_set_data It
23       is  very  important  to call this function if dbh_set_data is not used.
24       Unpredictable  results  will  follow  if  record_size   is   not   set.
25       DBHashTable  records  are  variable  in length, so use this function at
26       least once if you are planning to use fixed length records.   Parameter
27       record_size  is  the  amount  of  bytes  to be reserved for the current
28       DBHashTable record data.
29

RETURN VALUE

31       dbh_set_size returns 0 on error, 1 otherwise.
32
33       dbh_set_recordsize  returns  the  amount  of  bytes  in   the   current
34       DBHashTable record.
35

SEE ALSO

37       dbh   (0),  dbh_update  (3),  dbh_writeheader  (3),  dbh_set_data  (3),
38       dbh_set_key (3)
39

Author

41       Edscott Wilson Garcia <edscott@xfce.org>
42
43
44
45DBHashTables                          DBH                      dbh_set_size(3)
Impressum