Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Networking With Open Transport / Part 2 - Open Transport Reference
Chapter 27 - Utilities Reference / Functions
OTFIFO List Utility Functions /


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 the list parameter. It does not remove the lement form the list. It returns nil 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.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998