Name
Bfree — Free up the buffer allocated by Balloc(3)
Synopsis
#include <ubf.h>
int Bfree (UBFH *p_ub);
Link with -lubf -lnstd -lm -lpthread
DESCRIPTION
Free up the buffer allocated by Balloc(3). After the function call p_ub pointer becomes invalid.
RETURN VALUE
On success, Bfree() return zero; on error, -1 is returned, with Berror set to indicate the error.
ERRORS
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.