User Tools

Site Tools


Sidebar

Table Of Contents

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

bvselinit

Name

Bvselinit — Initialize view field to NULL value.

Synopsis

#include <ubf.h>

int Bvselinit(char *cstruct, char *cname, char *view);

Link with -lubf -lnstd -lm -lpthread

DESCRIPTION

Initialize view member value to NULL value specified in view file. The pointer to C structure is specified in cstruct parameter. The file name is specified in cname. The view name is specified view. If view field is array (COUNT greater than 1), then all array elements are initialized to NULL value.

RETURN VALUE

On success, Bvselinit() 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, cname or view parameters are NULL.

BNOCNAME cname not found.

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