simMoveStackItemToTop

Moves a stack into to the top of the stack

C++ synopsis

int simMoveStackItemToTop(int stackHandle, int cIndex)

Arguments

  • stackHandle: a stack handle obtained with simCreateStack.
  • cIndex: the zero-based index of the item to move. Negative values indicate reverse counting from the top of the stack (i.e. -1 indicates the stack top)

Return

  • -1 in case of an error.


See also: