DBENV->set_func_malloc |
![]() ![]() |
#include <db.h>int DBENV->set_func_malloc(DB_ENV *dbenv, void *(*func_malloc)(size_t size));
Replace Berkeley DB calls to the ANSI C X3.159-1989 (ANSI C) standard malloc function with func_malloc, which must conform to the standard interface.
The DBENV->set_func_malloc interface affects the entire application, not only the environment in which it is called.
The DBENV->set_func_malloc interface may only be used to configure Berkeley DB before the DBENV->open interface is called.
The DBENV->set_func_malloc function returns a non-zero error value on failure and 0 on success.
Called after DBENV->open was called.
![]() ![]() |