VECTOR_SWAP

Syntax

VECTOR_SWAP ( vector_handle, index1, index2 );
Input arguments:
handle vector_handle Vector.
int index1 Index of element 1.
int index2 Index of element 2.

Return Values

Success:
int 0
Failure:
int -1

Description

This function swaps the elements at index1 and index2 in the given vector.