Table of Contents
#include <ubf.h>
int Bvcmp(char *cstruct1, char *view1, char *cstruct2, char *view2);
Link with -lubf -lnstd -lm -lpthread
Function compares two views by analyzing the view type and their contents. Compare is based on following principles:
All function arguments must not be NULL. In case of error (for example view is not defined), value -2 is returned.
On success, Bvcmp() return -1 if view1/cstruct1 is lesser than view2/cstruct2. 0 is returned in case of both structures matches. 1 is returned in case if view1/cstruct1 is lesser greater than view2/cstruct2.
Note that Bstrerror() returns generic error message plus custom message with debug info from last function call.
BEINVAL cstruct1, view1, cstruct2 or view2 is NULL.
BBADVIEW view not found in view files.
Report bugs to support@mavimax.com