Ffloatev, Ffloatev32, Fvfloatev, Fvfloatev32-return value of expression as a double
#include <stdio.h>
#include "fml.h"
double
Ffloatev(FBFR *fbfr, char *tree)
double
Fvfloatev(char *cstruct, char *tree, char *viewname)
#include "fml32.h"
double
Ffloatev32(FBFR32 *fbfr, char *tree)
double
Fvfloatev32(char *cstruct, char *tree, char *viewname)
Ffloatev() takes a pointer to a fielded buffer, fbfr, and a pointer to the evaluation tree returned from Fboolco(3), tree, and returns the value of the (arithmetic) expression, represented by the tree, as a double. This function does not change either the fielded buffer or the evaluation tree.
Ffloatev32 is used with 32-bit FML.
Fvfloatev and Fvfloatev32 provide the same functionallity for views. The viewname parameter indicates the view from which the field offsets are taken, and should be the same view specified for Fvboolco or Fvboolco32.
These functions are not supported on /WS platforms.
On success Ffloatev() returns the value of an expression as a double.
This function returns \-1 on error and sets Ferror to indicate the error condition.
Ferror to:
[FALIGNERR]
[FNOTFLD]
[FMALLOC]
[FSYNTAX]
[FBADVIEW]
VIEWDIR or VIEWFILES.
[FVFOPEN]
VIEWDIR or VIEWFILES.
[EUNIX]
VIEWDIR or VIEWFILES for reading.
[FVFSYNTAX]
VIEWDIR or VIEWFILES was corrupted or not a view file.
[FMALLOC]
Fintro(3), Fboolco(3), Fboolev(3)