User Tools

Site Tools


Sidebar

Table Of Contents

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

bfloatev

Name

Bfloatev — Evaluate compiled expression tree against UBF buffer

Synopsis

#include <ubf.h>

double Bfloatev (UBFH *p_ub, char *tree);

Link with -lubf -lnstd -lm -lpthread

DESCRIPTION

Evaluate compiled expression in tree against UBF buffer in p_ub. Returned value is floating point result of the operation.

RETURN VALUE

Floating point result value is returned. In case of error it is -1, but to detect error, check the Berror.

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 param 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