# Synopsis

(macro) PDX_MSGT otm_ResetCycle(long option, OTM_TREE *tree)

# Purpose

Reset a tree to the first element.

# Description

This function will reset the tree to the first element so that a subsequent call to otm_CycleTree will start the cycle at the first element. This allows an application to force the cycle to start at the first element when it is unknown if the last cycle was aborted before the end of tree was encountered. Normally this function does not need to be called because additions and deletions cause the tree to be reset.

# Input

## option

Options (not used)

## tree

Tree pointer

# Return

OTM_NOERR or error