1dbh_set_data(3) DBHashTables Programmers' Manual dbh_set_data(3)
2
3
4
5‐
6
8 dbh_set_data, dbh_set_key - set the record data or record key
9
11 #include <dbh.h>
12
13 void dbh_set_data (DBHashTable *dbh, void *data, FILE_POINTER size);
14
15 void dbh_set_key (DBHashTable *dbh, unsigned char *key);
16
17
19 The dbh_set_data function copies the user data into the current
20 DBHashTable record and along with function dbh_set_key makes the cur‐
21 rent DBHashTable record ready for the dbh_update function to commit to
22 the actual DBHashTable on disk or if only the key is set, ready for the
23 dbh_load function to load the current record data from disk. data is a
24 pointer from where the data is to be copied to the current DBHashTable
25 record and size is the amount of bytes to copy.
26
27 The dbh_set_key function sets the key of the current DBHashTable
28 record.
29
30
32 These functions do not return anything.
33
35 The length of the key to be copied is taken from the number of branches
36 defined when the DBHashTable was created.
37
39 dbh (0), dbh_update (3), dbh_load (3)
40
42 Edscott Wilson Garcia <edscott@xfce.org>
43
44
45
46DBHashTables DBH dbh_set_data(3)