RCP API  6.61.0

◆ c_list_insert_in_sort_order_unique()

c_list_error_t c_list_insert_in_sort_order_unique ( c_list_t c_list,
c_list_num_t  num,
const char *  str,
user_defined_t  user_defined 
)

Insert item in list in sorted order (unique).

Inserts item in list in sorted order. If an item with the same numeric value already exists in the list it will be replaced with the values provided.

Note
The list must already be in sorted order
Parameters
[in]c_listlist to add item to
[in]numinteger value of item to add
[in]strstring value of item to add
[in]user_defineduser defined value of item to add
Returns
C_LIST_SUCCESS on success.