Fvopt, Fvopt32-change flag options of a mapping entry
#include <stdio.h>
#include "fml.h"
int
Fvopt(char *cname, int option, char *view)
#include "fml32.h"
int
Fvopt32(char *cname, int option, char *view)
Fvopt() allows users to specify buffer-to-structure mapping options at runtime. cname is a pointer to the name of an element in a view description, view. option specifies the desired setting for the mapping option. Valid options and their meanings are:
F_FTOS
S in the view description
F_STOF
F in the view description
F_OFF
N in the view description
F_BOTH
S,F in the view description
Fvopt32 is used for views defined with viewc32 or VIEW32 typed buffers for larger views with more fields.
This function returns \-1 on error and sets Ferror to indicate the error condition.
Under the following conditions, Fvopt() fails and sets Ferror to:
[FEINVAL]
[FBADVIEW]
[FNOCNAME]
Fintro(3), viewfile(5)