Table of Contents
#include <ubf.h>
int Bvsinit(char *cstruct, char *view);
Link with -lubf -lnstd -lm -lpthread
Initialize all view members to NULL value specified in view file. The pointer to C structure is specified in cstruct parameter. The view name is specified view. Function initialize all members including all array elements to corresponding NULL values in viewfile(5).
On success, Bvsinit() return zero; 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.
BEINVAL cstruct or view parameters are NULL.
BBADVIEW View is not found, object file is defective or system error.
BVFSYNTAX Defective object file, cannot load.
Report bugs to support@mavimax.com