dbh_set_data - Man Page

set the record data or record key


#include <dbh.h>

void dbh_set_data (DBHashTable *dbh, void *data, FILE_POINTER size);

void dbh_set_key (DBHashTable *dbh, unsigned char *key);


The dbh_set_data function copies the user data into the current DBHashTable record and along with function dbh_set_key makes the current DBHashTable record ready for the dbh_update function to commit to the actual DBHashTable on disk or if only the key is set, ready for the dbh_load function to load the current record data from disk. data is a pointer from where the data is to be copied to the current DBHashTable record and size is the amount of bytes to copy.

The dbh_set_key function sets the key of the current DBHashTable record.

Return Value

These functions do not return anything.


The length of the key to be copied is taken from the number of branches defined when the DBHashTable was created.

See Also

dbh (0), dbh_update (3), dbh_load (3)


Edscott Wilson Garcia <edscott@xfce.org>

Referenced By

dbh(3), dbh_set_size(3), dbh_update(3).

The man page dbh_set_key(3) is an alias of dbh_set_data(3).

DBH DBHashTables Programmers' Manual