Xiqual 0.9.1

In file xitools/list_addhead.c:

void list_addhead

(List* list, Node* item)

Add a Node to the top of a List.


Add a Node to the top of 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 top of the List, as element list->head.

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++.