ListGetItem

void ListGetItem (ListType list, void *itemDestination, int positionOfItemToGet);

Purpose

This function copies the contents of the specified list item to the specified destination. The item remains in the list.

Parameters

Input
Name Type Description
list ListType The list to get the item from.
itemDestination void * A pointer to where ListGetItem should copy the contents of the specified list item.
positionOfItemToGet integer The position of the item to be retrieved. The position may be a number from 1 to the number of items in the list.

To get the first item in the list, the constant FRONT_OF_LIST may be passed.

To get the last item in the list, the constant END_OF_LIST may be passed.

Return Value

None.