Note that the function receives and returns a list of element IDs, not a list of element names.
Input/Outputstm_list LIST OF
ELEMENT
The list of Rational Statemate element IDs to be sorted.stm_attr_name
STRING
The function returns the status code.stm_elements_without_attributes
if you apply this function to a list of elements that do not have the specified attribute.stm_list act_list, ord_act_list;
stm_id el;
int status;
.
.
ord_act_list = stm_list_sort_by_attr_value (
act_list,"code", &status);
printf("\n Ordered list of activities:");
.
.This example prints a particular list of activities from the database. Assume you extracted the activities of interest using single-element and query functions and built a list of such activities. This list is assigned to the variableact_list
.