BSIZEOF(3)


Table of Contents

1. NAME
2. SYNOPSIS
3. DESCRIPTION
4. RETURN VALUE
5. ERRORS
6. EXAMPLE
7. BUGS
8. SEE ALSO
9. COPYING

1. NAME

Bsizeof - Return the buffer size

2. SYNOPSIS

#include <ubf.h>

long Bsizeof (UBFH *p_ub);

Link with -lubf -lnstd -lm -lpthread

3. DESCRIPTION

Return the UBF buffer size in bytes.

4. RETURN VALUE

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

5. 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.

6. EXAMPLE

See ubftest/ubfunit1.c for sample code.

7. BUGS

Report bugs to support@mavimax.com

8. SEE ALSO

Binit(3) Bused(3) Bunused(3)

9. COPYING

© Mavimax, Ltd