Input/Output The function output has an enumerated type,stm_activity_termination
, with three possible values:To determine the termination type of the activityA1
and if the activity is self-terminated write the activity’s name, use the following statements:stm_id act_id;
stm_activity_termination act_term_type;
int status;
.
.
act_id = stm_r_ac ("A1", &status);
act_term_type = stm_r_ac_termination (act_id, &status);
if(act_term_type == stm_ac_self_termination)
printf ("\n Self-terminated activity:", "A1");
.
.
.