User Tools

Site Tools


Sidebar

Table Of Contents

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

bdel

Name

Bdel — Delete field from UBF buffer

Synopsis

#include <ubf.h>

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

Link with -lubf -lnstd -lm -lpthread

DESCRIPTION

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

RETURN VALUE

On success, Bdel() 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.

BBADFLD Invalid field id passed.

BNOTPRES Field not present.

EXAMPLE

See ubftest/test_bdel.c for sample code.

BUGS

Report bugs to support@mavimax.com

COPYING

© Mavimax, Ltd