BDEL(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

Bdel - Delete field from UBF buffer

2. SYNOPSIS

#include <ubf.h>

int Bdel (UBFH * p_ub, BFLDID bfldid, BFLDOCC occ);

Link with -lubf -lnstd -lm -lpthread

3. DESCRIPTION

Delete the field bfldid with occurrence occ from UBF buffer p_ub.

4. RETURN VALUE

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

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

BBADFLD Invalid field id passed.

BNOTPRES Field not present.

6. EXAMPLE

See ubftest/test_bdel.c for sample code.

7. BUGS

Report bugs to support@mavimax.com

8. SEE ALSO

Bchg(3) Badd(3) CBadd(3) Bget(3) Badd(3)

9. COPYING

© Mavimax, Ltd