Important: The information in this document is obsolete and should not be used for new development.
OTGetLast
Returns the last element in a FIFO list.C INTERFACE
OTLink* OTGetLast (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 last element in the list.
DISCUSSION
This function returns a pointer to the last element in the FIFO list referenced by thelist
parameter. It does not remove the lement form the list. It returnsnil
if the list is empty.The
OTAddLast
function places a link at the end of a FIFO list.Use the
OTRemoveLast
function to remove the last link in a FIFO list.Use the
OTGetFirst
function to obtain a pointer to the first element in a FIFO list.