int data_open3(name,data,p1,p2,p3,p4)
char *name; /* name of SURVO 84C data */
SURVO_DATA *data; /* pointer to data structure */
int p1; /* space for variables indicator */
int p2; /* name length indicator */
int p3; /* text indicator */
int p4; /* 0=read only, 1=read and write */
The data_open3 function opens the SURVO 84C data as data_open2 but
enables opening for read-only mode (by p4=0
), too.
data_open3(name,data,p1,p2,p3,1);
is equivalent to
data_open2(name,data,p1,p2,p3);
and
data_open3(name,data,0,0,0,0);
is equivalent to
data_read_open(name,data);
data_open3 returns 1 if the data is succesfully opened and -1 otherwise. In the latter case an error message is displayed.