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
Adding and Removing aList Element /


OTEnqueue

Adds an element to a list.

C INTERFACE
void OTEnqueue(void** listHead,
                     void* object,
                     size_t linkOffset);
C++ INTERFACE
None. C++ applications use the C interface to this function.

PARAMETERS
listHead
A pointer to the list head.
object
The address of the object you want to insert in the list.
linkOffset
The size of the object. That is, the distance in bytes from the beginning of object to the fNext field in its linked list entry.
DISCUSSION
This function puts the address you pass in the object parameter in the list head and places the element that was previously referenced in the list head into the pointer at object plust linkOffset.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998