42/my_bsq/lib_src/ft_swap.c

21 lines
971 B
C
Raw Normal View History

2016-11-20 02:20:23 +02:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_swap.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gtertysh <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/10/28 10:08:34 by gtertysh #+# #+# */
/* Updated: 2016/10/28 10:14:17 by gtertysh ### ########.fr */
/* */
/* ************************************************************************** */
void ft_swap(int *a, int *b)
{
int temp;
temp = *a;
*a = *b;
*b = temp;
}