|
|
- NAME
- #include <exec/lists.h>
#include <proto/exec.h>
void Insert ()
- SYNOPSIS
- struct List * list
struct Node * node
struct Node * pred
- FUNCTION
- Insert Node node after pred in list.
- INPUTS
- list
- The list to insert the node into
- node
- This node is to be inserted
- pred
- Insert after this node. If this is NULL, node is inserted
as the first node (same as AddHead())
- RESULT
-
- NOTES
-
- EXAMPLE
- struct List * list;
struct Node * pred, * node;
// Insert Node node as second node in list
pred = GetHead (list);
Insert (list, node, pred);
- BUGS
-
- SEE ALSO
- Exec.library, AddHead(), AddTail(), Enqueue(), FindName(), RemHead(), RemTail(), Remove()
- INTERNALS
-
|