-
Notifications
You must be signed in to change notification settings - Fork 1
Insert
snayaksnayak edited this page May 14, 2013
·
2 revisions
NAME
Insert - insert a node into a list
SYNOPSIS
Insert(list, node, listNode);
void Insert(struct List *, struct Node *, struct Node *);
FUNCTION
Insert a node into a doubly linked list AFTER a given listnode
position. Insertion at the head of a list is possible by passing a
zero value for listNode, though the AddHead function is slightly
faster for that special case.
WARNING
This function does not arbitrate for access to the list. The
calling task must be the owner of the involved list.
INPUTS
list - a pointer to the target list header
node - the node to insert
listNode - the node after which to insert
SEE ALSO
[[AddHead]], [[AddTail]], [[Enqueue]], [[RemHead]], [[Remove]], [[RemTail]]