Defined Types



List

Abstract: Linked List
typedef struct {
  ListNode* list;
  ListNode* current;
  void (*freeItem)(void*);
  int numItems; 
} List;

Type for a linked list. Before use, list_new(*List) must be called to initialise the structure.

Fields

NameDescription
listPointer to first ListNode in the list
currentpointer to current node in traversal
freeItemPointer to function (void freeItem(void*)) used to free a node, otherwise NULL.
numItemsnumber of items in the list.

ListNode

Abstract: Defines ListNode as the struct ListNodeStruc
typedef struct ListNodeStruc ListNode;


(Last Updated 4/21/2003)