data_structures
Functions
array_swap.c File Reference
#include "array.h"
+ Include dependency graph for array_swap.c:

Go to the source code of this file.

Functions

void array_swap (t_array *array, size_t ind1, size_t ind2)
 Swaps elements at the two specified positions in the array. More...
 

Function Documentation

◆ array_swap()

void array_swap ( t_array array,
size_t  ind1,
size_t  ind2 
)

Swaps elements at the two specified positions in the array.

Parameters
ind1The index of the first element
ind2The index of the second element

Definition at line 16 of file array_swap.c.