Bfree — Free up the buffer allocated by Balloc(3)
#include <ubf.h>
int Bfree (UBFH *p_ub);
Link with -lubf -lnstd -lm -lpthread
Free up the buffer allocated by Balloc(3). After the function call p_ub pointer becomes invalid.
On success, Bfree() return zero; on error, -1 is returned, with Berror set to indicate the error.
Note that Bstrerror() returns generic error message plus custom message with debug info from last function call.
BALIGNERR Corrupted buffer or pointing to not aligned memory area.
BNOTFLD Buffer not fielded, not correctly allocated or corrupted.
See ubftest/test_mem.c for sample code.
Report bugs to support@mavimax.com
Balloc(3) Brealloc(3) Binit(3)
© Mavimax, Ltd