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 /


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 the list parameter. It does not remove the element from the list. If the list is empty, it returns nil.

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.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998