To print out the synonym of the state
S1
(if no synonym is defined in the state’s form, printmissing synonym
), use the following statements:int status;
stm_id state_id;
stm_short_name synonym;
.
.
.
state_id = stm_r_st ("S1", &status);
synonym = stm_r_st_synonym (state_id, &status);
if (status == stm_missing_synonym)
printf ("\n synonym: *missing synonym*");
else
printf ("\n synonym: %s", synonym);The
stm_id
data-type is defined in the Dataport Library definition file,dataport.h
. Refer to Data Types for a complete list of data-type definitions.