Table of Contents
#include <ubf.h>
int Bboolsetcbf (char funcname, long (functionPtr)(UBFH *p_ub, char *funcname));
Link with -lubf -lnstd -lm -lpthread
Register callback function to boolean expression evaluator. The function name which appears in UBF expression is set in funcname, the function it self is set passed in functionPtr. The callback function receives the buffer on which it is being evaluated in p_ub, and callback receives the function name too in funcname.
Min length for function name is 3 symbols and max length is 64.
On success, Bboolsetcbf() returns 0. On error -1 is returned, with Berror set to indicate the error.
Note that Bstrerror() returns generic error message plus custom message with debug info from last function call.
BBADNAME Invalid function name
Report bugs to support@mavimax.com