On 2/19/2010 8:41 PM, Benjamin Scott wrote:
> You can always use the following.
>
> Void Swap(Void *A, void *B)
> {
> Void *Temp
>
> Temp = A
> A = B
> B = temp
> };
>
> In this way, any varible type can be used. You
> would have to pass the pointer to it, however.
> This should be the best way possible.
> Great -- you swapped two pointers that are local variables defined on the stack. You still haven't swapped the variables in the calling code. -- John Gaughan http://www.jtgprogramming.org/
