21 lines
974 B
C
21 lines
974 B
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_swap.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2022/07/14 18:46:50 by cchauvet #+# #+# */
|
|
/* Updated: 2022/07/15 10:51:16 by cchauvet ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
void ft_swap(int *a, int *b)
|
|
{
|
|
int tempo;
|
|
|
|
tempo = *a;
|
|
*a = *b;
|
|
*b = tempo;
|
|
}
|