Synopsis
void *olm_AddObject(long option, OLM_LIST *list, int position, void *object)
Purpose
Add an object to an object list.
Description
This function will add the specified object to the specified list at the specified postion. The object currently at the specified position will become the next object in the list. This object will become the current object in the list. If the object argument is specified as NULL, an uninitialized object will be added to the list and its address returned.
Input
option
Options (not used)
list
List pointer
position
Position number or OLM_FIRST, OLM_LAST, OLM_CURRENT
object
Object pointer or NULL
Return
Object pointer in the list or NULL if error