42-archive/42-piscine-c/d06/ex00/ft_swap.c
2016-08-25 20:50:28 +02:00

20 lines
968 B
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_swap.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/08/07 23:07:55 by jhalford #+# #+# */
/* Updated: 2016/08/09 10:48:14 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */
void ft_swap(int *a, int *b)
{
int tmp;
tmp = *a;
*a = *b;
*b = tmp;
}