Back to home page

Enduro/X

 
 

    


0001 BFLOATEV(3)
0002 ===========
0003 :doctype: manpage
0004 
0005 
0006 NAME
0007 ----
0008 Bfloatev - Evaluate compiled expression tree against UBF buffer
0009 
0010 
0011 SYNOPSIS
0012 --------
0013 
0014 #include <ubf.h>
0015 
0016 double Bfloatev (UBFH *'p_ub', char *'tree');
0017 
0018 Link with '-lubf -lnstd -lm -lpthread'
0019 
0020 DESCRIPTION
0021 -----------
0022 Evaluate compiled expression in 'tree' against UBF buffer in 'p_ub'. 
0023 Returned value is floating point result of the operation.
0024 
0025 RETURN VALUE
0026 ------------
0027 Floating point result value is returned. In case of error it is *-1*, 
0028 but to detect error, check the *Berror*.
0029 
0030 ERRORS
0031 ------
0032 Note that *Bstrerror()* returns generic error message plus custom message with 
0033 debug info from last function call.
0034 
0035 *BNOTFLD* 'p_ub' is not fielded buffer or argument NULL.
0036 
0037 *BEINVAL* 'tree' param is NULL.
0038 
0039 *BALIGNERR* Corrupted buffer or pointing to not aligned memory area.
0040 
0041 *BNOTFLD* Buffer not fielded, not correctly allocated or corrupted.
0042 
0043 *BBADFLD* Invalid field id passed.
0044 
0045 *BNOTPRES* Field not present.
0046 
0047 *FMALLOC* Malloc failed.
0048 
0049 *BSYNTAX* Synax error in script.
0050 
0051 *BBADNAME* Bad field name specified.
0052 
0053 EXAMPLE
0054 -------
0055 See *ubftest/test_expr.c* for sample code.
0056 
0057 BUGS
0058 ----
0059 Report bugs to support@mavimax.com
0060 
0061 SEE ALSO
0062 --------
0063 *Bboolco(3)* *Bboolev(3)* *Btreefree(3)*
0064 
0065 COPYING
0066 -------
0067 (C) Mavimax, Ltd
0068