User Tools

Site Tools


Sidebar

Table Of Contents

endurox:v7.5.x:api:ubf:bvsinit.3

bvsinit

Name

Bvsinit — Initialize all view fields to NULL value.

Synopsis

#include <ubf.h>

int Bvsinit(char *cstruct, char *view);

Link with -lubf -lnstd -lm -lpthread

DESCRIPTION

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).

RETURN VALUE

On success, Bvsinit() return zero; on error, -1 is returned, with Berror set to indicate the error.

ERRORS

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.

EXAMPLE

See atmitest/test040_typedview/viewunit1.c for sample code.

BUGS

Report bugs to support@mavimax.com

COPYING

© Mavimax, Ltd