Skip to content

Commit

Permalink
correction ft_array_swap
Browse files Browse the repository at this point in the history
  • Loading branch information
Anaelle LECLABART committed Jan 2, 2019
1 parent 7750845 commit 7e84cd4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ft_array_swap.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
/* By: anleclab <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/01/02 10:35:50 by anleclab #+# #+# */
/* Updated: 2019/01/02 10:37:31 by anleclab ### ########.fr */
/* Updated: 2019/01/02 11:13:24 by anleclab ### ########.fr */
/* */
/* ************************************************************************** */

void ft_array_swap(int *array, int i1, int i2)
{
int tmp;

tmp = cache[i1];
cache[i1] = cache[i2];
cache[i2] = tmp;
tmp = array[i1];
array[i1] = array[i2];
array[i2] = tmp;
}

0 comments on commit 7e84cd4

Please sign in to comment.