Utility Functions : List of Utility Functions : stm_list_create_ptr_list

stm_list_create_ptr_list
Creates a list of items. The number of arguments varies according to the number of elements to be included in the list. The list is terminated by the predefined constant end_of_ptr_list.
Function Type
stm_list
Syntax
stm_list_create_ptr_list (item1, item2..., end_of_list, &status)
Arguments
Input/Output
Status Codes
Example
To create a list that contains the names of the activity named A2 and the state S8, create the list using the following statements:

 

stm_id ac_id, st_id;
int status;
stm_element_name ac_name,st_name
stm_list list;
.
.
ac_name = stm_r_ac_name ("ac_id", &status);
st_name = stm_r_st_name ("st_id", &status);
list = stm_list_create_ptr_list (st_name, ac_name, end_of_ptr_list, &status);
.
.