Documentation

LIST_DATA_TYPE

LIST_DATA_TYPE Description Get data type stored by this list

Read More

LIST_NODE_TYPE

LIST_NODE_TYPE Description Get node type stored by this list

Read More

ListClear

ListClear Description Set list length to 0.

Read More

ListDelete

ListDelete Description Delete item at given index

Read More

ListDeleteLast

ListDeleteLast Description Delete last item from list

Read More

ListDeleteRange

ListDeleteRange Description Delete items in given range [start, start + count)

Read More

ListFirst

ListFirst Description Value at first node in list This is a more expensive call. Fetches pointer to data twice and then dereferences. Better use ListPtrAt instead.

Read More

ListForeach

ListForeach Description Iterate over each element var of the given list l. The variable var is declared and defined by this macro. Iteration happens in forward order, starting from the head of the list and continuing through the next pointers until the end is reached. The variable var will contain a copy of the value pointed to by each list node.

Read More

ListForeachIdx

ListForeachIdx Description Iterate over each element var of the given list l, with index idx. The variable var is declared and defined by this macro. Iteration happens in forward order, starting from the head of the list. This macro also tracks the index (idx) of each element during iteration. var will contain a copy of the value pointed to by each list node, and idx will be the zero-based index of the current element.

Read More

ListForeachInRange

ListForeachInRange Description Iterate over each element var of the given list l in the index range [start, end). The variable var is declared and defined by this macro. This macro performs forward traversal, starting at index start (inclusive) and continuing until index end (exclusive), assuming zero-based indexing. Since linked lists are not indexable, the traversal walks node-by-node and skips nodes before start, then continues while tracking the current index.

Read More