int activated(data,character)
SURVO_DATA *data; /* pointer to data structure */
char character; /* activation character */
The activated function finds the first variable which has been activated
by character
in data
opened by data_open or data_open2.
activated returns # of variable or -1 if no variable has been activated
by character
.
int i;
int weight_variable;
SURVO_DATA dat;
i=data_open("TEST",&dat);
if (i<0) return;
weight_variable=activated(&dat,'W');