Important: The information in this document is obsolete and should not be used for new development.
OTAddFirst
Places a link at the front of a FIFO list.C INTERFACE
void OTAddFirst (OTList* list, OTLink* link)C++ INTERFACE
None. C++ applications use the C interface to this function.PARAMETERS
list
- A pointer to the list structure in which the entry specified by the link parameter is to be placed.
link
- A pointer to the link being placed in the list.
DISCUSSION
This function adds the link referenced by thelink
parameter to the front of the FIFO list referenced by thelist
parameter. Note that because it's a singly linked list, theOTAddFirst
function is a lot faster than theOTAddLast
function, expecially for long lists.Use the
OTAddLast
function to place a link at the end of a FIFO list.Use the
OTRemoveFirst
function to remove the first link in a FIFO list.Use the
OTGetFirst
function to obtain a pointer to the first link in a FIFO list.