Xiqual 0.9.1

In file xitools/list_add.c:

void list_add

(List* list, Node* item)

Add a Node to a List.


Add a Node to a List. The Node structure passed in is either just a node with space for pointers to previous and next node, and some data, or it can be the head of a larger structure. It will be inserted at the bottom of the List, as element list->tail.

Each time an item is added to a List, its size element is increased by one. This can be used to instantly tell how many items are in the list.

list - A struct List to add item to
item - A Node structure to add to list
Ronny Bangsund
See Also:
List, Node, list_new(), list_newitem(), list_insert(), list_remove(), list_delete(), list_free(), list_nodemakecircular()

Alphabetic index

This page was generated with the help of DOC++.