User Tools

Site Tools


Sidebar

Table Of Contents

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

bboolev

Name

Bboolev — Evaluate compiled expression tree against UBF buffer

Synopsis

#include <ubf.h>

int Bboolev (UBFH *p_ub, char *tree);

Link with -lubf -lnstd -lm -lpthread

DESCRIPTION

Evaluate compiled boolean expression in tree against UBF buffer in p_ub.

RETURN VALUE

On success, Bboolev() and result is TRUE, then 1 is returned. ON success but statement is FALSE, then 0 is returned. 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.

BNOTFLD p_ub is not fielded buffer or argument NULL.

BEINVAL tree parameter is NULL.

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.

FMALLOC Malloc failed.

BSYNTAX Synax error in script.

BBADNAME Bad field name specified.

EXAMPLE

See ubftest/test_expr.c for sample code.

BUGS

Report bugs to support@mavimax.com

COPYING

© Mavimax, Ltd