User Tools

Site Tools


Sidebar

Table Of Contents

endurox:v7.5.x:api:ubf:bfree.3

bfree

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.

EXAMPLE

See ubftest/test_mem.c for sample code.

BUGS

Report bugs to support@mavimax.com

COPYING

© Mavimax, Ltd