User Tools

Site Tools


Sidebar

Table Of Contents

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

bsizeof

Name

Bsizeof — Return the buffer size

Synopsis

#include <ubf.h>

long Bsizeof (UBFH *p_ub);

Link with -lubf -lnstd -lm -lpthread

DESCRIPTION

Return the UBF buffer size in bytes.

RETURN VALUE

On success, Bsizeof() return buffer size; on error, -1 is returned, with Berror set to indicate the error.

ERRORS

Bstrerror(3) can give more description for error (for last call).

BALIGNERR Corrupted buffer or pointing to not aligned memory area.

BNOTFLD Buffer not fielded, not correctly allocated or corrupted. p_ub is NULL.

EXAMPLE

See ubftest/ubfunit1.c for sample code.

BUGS

Report bugs to support@mavimax.com

COPYING

© Mavimax, Ltd