# Synopsis

void *olm_CycleList(long option, OLM_LIST *list)

# Purpose

Cycle an object list.

# Description

Successive calls to this function will return each object in the specified list. The list is exhausted or an error has occurred if a NULL pointer is returned. The function mpm_LastError should be called when done to check for an error condition set during cycle list. If the cycle is not completed, the next call will start where the previous stopped. Any additions or removals of objects to the list will restart the cycle.

# Input

## option

Options (not used)

## list

List pointer to cycle

# Return

Object pointer or NULL if end of list or error