List Sub-Package
The List sub-package contains the following KPs.
- op_prg_list_access() Obtains a pointer to an element stored in the specified list, at the specified list position.
- op_prg_list_create() Allocates a new, empty list.
- op_prg_list_elem_find() Finds an element in a list and returns a pointer to it.
- op_prg_list_elems_copy() Copies the contents of a source list into a destination list.
- op_prg_list_free() Deallocates the contents of the specified list, releasing associated memory resources for other purposes.
- op_prg_list_init() Initializes an existing list which has been allocated by user code.
- op_prg_list_insert() Inserts the specified data element into the specified list, at the specified position.
- op_prg_list_insert_sorted()
Inserts the element into the specified sorted list at the proper position, as defined by
compare_proc. - op_prg_list_map() Applies a user-specified function to elements in the specified list.
- op_prg_list_remove() Removes an element from the specified list, at the specified list position, and returns a pointer to the element.
- op_prg_list_size() Obtains the length of the specified list (i.e., the number of elements that the list contains).
- op_prg_list_sort() Sorts a list according to a comparison algorithm implemented via a procedure argument.
- op_prg_list_transfer() Copies the elements of one linked list into another.
See List Sub-Package for an overview of this sub-package.