Bvcmp — Compare two view 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.