hydrus logo









Valid XHTML 1.0 Transitional

Apache logo

FreeBSD logo

RootDown Radio

Updating data for an existing key

#include "btree.h"

int btupd(BTA* btact, char* key, char* data, int dsize);

The btupd function updates the data record of an existing key in the file associated with the btact context pointer. Both key and data are character pointers. Since the data may legitimately contain null (x'00) characters, the length of the data, in bytes, must be passed in dsize. If the replacement data is successfully stored in the B Tree file, btupd returns zero.

A non-zero return from btupd indicates an error occurred.