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 thelistparameter. It does not remove the lement form the list. It returnsnilif the list is empty.The
OTAddLastfunction places a link at the end of a FIFO list.Use the
OTRemoveLastfunction to remove the last link in a FIFO list.Use the
OTGetFirstfunction to obtain a pointer to the first element in a FIFO list.