Synopsis

(macro) PDX_MSGT osm_ResetCycle(long option, OSM_STACK *stack)

Purpose

Reset a stack to the first element.

Description

This function will reset the stack to the first element so that a subsequent call to osm_CycleStack 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 stack was encountered. Normally this function does not need to be called because additions and deletions cause the stack to be reset.

Input

option

Options (not used)

stack

Stack pointer

Return

OSM_NOERR or error