BEA Logo BEA Tuxedo Release 8.0

  BEA Home  |  Events  |  Solutions  |  Partners  |  Products  |  Services  |  Download  |  Developer Center  |  WebSUPPORT

 

   Tuxedo Documentation   |   FML Function Reference   |   Local Topics   |   Previous Topic   |   Next Topic   |   Contents

 


Fvselinit, Fvselinit32(3fml)

Name

Fvselinit(), Fvselinit32() - initialize structure element to NULL

Synopsis

#include <stdio.h> 
#include "fml.h"

int
Fvselinit(char *cstruct, char *cname, char *view)

#include "fml32.h"

int
Fvselinit32(char *cstruct, char *cname, char *view)

Description

Fvselinit() initializes an individual element of a C structure to its appropriate NULL value. cstruct is a pointer to a C structure. cname is a pointer to the name of an element of cstruct. view is a pointer to the name of a compiled view description.

Fvselinit() sets the associated count member of the element to 0 if the C flag was used when the view was compiled, and sets the associated length member to the length of the associated NULL value if the L flag was used in the viewfile.

Fvselinit32() is used for views defined with viewc32 or VIEW32 typed buffers for larger views with more fields.

A thread in a multithreaded application may issue a call to Fvselinit() or Fvselinit32() while running in any context state, including TPINVALIDCONTEXT.

Return Values

This function returns -1 on error and sets Ferror to indicate the error condition.

Errors

Under the following conditions, Fvselinit() fails and sets Ferror to:

[FEINVAL]

"invalid argument to function"
One of the arguments to the function invoked was invalid (for example, specifying a NULL cstruct parameter invalid Fvselinit).

[FBADVIEW]

"cannot find or get view"
The view description specified was NULL or was not found in the files specified by VIEWDIR or VIEWFILES.

[FNOCNAME]

"cname not found"
The C structure field name is not found in the view description.

See Also

Introduction to FML Functions, Fvsinit, Fvsinit32(3fml), viewfile(5)

 

back to top previous page next page