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

NAME

8       dbh_update, dbh_writeheader - write data record or file header to disk
9

SYNOPSIS

11       #include <dbh.h>
12
13       FILE_POINTER dbh_update (DBHashTable *dbh);
14       int dbh_writeheader (DBHashTable *dbh);
15

DESCRIPTION

17       dbh_update  will  update the current record in memory to the disk based
18       hash.  This function will update erased records  as  well  as  unerased
19       records,  but  if  an  erased  record  is  updated, it is automatically
20       unerased.
21
22       dbh_writeheader will write out the DBHashTable header information.   It
23       is  advisable to call this function inmediately after creation of a new
24       DBHashTable to force a buffer flush.
25

RETURN VALUE

27       dbh_update returns 0 on error, byte offset of loaded  record  otherwise
28       while dbh_writeheader returns 0 if error, 1 otherwise.
29

SEE ALSO

31       dbh   (0),   dbh_set_data   (3),  dbh_set_key  (3),  dbh_set_size  (3),
32       dbh_set_recordsize (3), dbh_load (3), dbh_sweep (3)
33

Author

35       Edscott Wilson Garcia <edscott@xfce.org>
36
37
38
39DBHashTables                          DBH                        dbh_update(3)
Impressum