Seppo Mustonen : Programming Survo in C

Functions in library SURVO.LIB

data_read_open
Summary

int data_read_open(name,data)
char *name;       /* name of SURVO 84C data */
SURVO_DATA *data; /* pointer to data structure */
Description

The data_read_open function opens the SURVO 84C data only for reading. This function should be preferred to data_open in modules which have no need to write new information to the data. Then, for example, in network installations, several users can use the same data simultaneously.

data_read_open(name,data);
is equivalent to
data_open3(name,data,0,0,0,0);
Return Value

data_read_open returns 1 if the data is succesfully opened and -1 otherwise. In the latter case an error message is displayed.

See Also

data_open, data_open3, data_to_write


Front page of Survo C libraries