Important: The information in this document is obsolete and should not be used for new development.
OTGetFirst
Returns a pointer to the first element in a FIFO list.C INTERFACE
OTLink* OTGetFirst (OTList* list)C++ INTERFACE
None. C++ applications use the C interface to this function.PARAMETERS
list
- A pointer to a FIFO list.
- function result
- A pointer to the first element in the list.
DISCUSSION
This function returns a pointer to the first element in the FIFO list referenced by thelist
parameter. It does not remove the element from the list. If the list is empty, it returnsnil
.Use the
OTAddFirst
function to place a link at the front of a FIFO list.Use the
OTRemoveFirst
function to remove the first link in a FIFO list.Use the
OTGetLast
function to obtain a pointer to the last link in a FIFO list.