int mask(data)
SURVO_DATA *data; /* pointer to data structure */
The mask function reads the VARS (or VAR) specification written in the
edit field or, if it does not exist, mask reads the MASK specification
and activates variables (fields) in data
opened by data_open or
data_open2. The effect of mask is only temporary. There is no change in
the activation status of files. Thus if data
is reopened, activation due
to mask is no longer valid.
mask returns -1 if the VARS or MASK specification is invalid. Otherwise mask returns 1.
int i;
SURVO_DATA dat;
i=data_open("TEST",&dat);
if (i<0) return;
mask(&dat);