Seppo Mustonen : Programming Survo in C

Functions in library SURVO.LIB

mask
Summary

int mask(data)
SURVO_DATA *data; /* pointer to data structure */
Description

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.

Return Value

mask returns -1 if the VARS or MASK specification is invalid. Otherwise mask returns 1.

See Also

scales, activated, varfind

Example

int i;
SURVO_DATA dat;

i=data_open("TEST",&dat);
if (i<0) return;
mask(&dat);


Front page of Survo C libraries