User Tools

Site Tools


Sidebar

Table Of Contents

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

bdelete

Name

Bdelete — Delete specified fields from UBF buffer

Synopsis

#include <ubf.h>

int Bdelete (UBFH *p_ub, BFLDID *fldlist);

Link with -lubf -lnstd -lm -lpthread

DESCRIPTION

This function removes any field from p_ub buffer which are present in fldlist array. The array must be terminated with BBADFLDID.

RETURN VALUE

On success, Bdelete() 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_bproj.c for sample code.

BUGS

Report bugs to support@mavimax.com

COPYING

© Mavimax, Ltd