42_push_swap/ft_swap.c
Camille Chauvet bb6e9ddd85 d
2022-11-23 21:44:27 +01:00

23 lines
994 B
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_swap.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/08 20:16:30 by cchauvet #+# #+# */
/* Updated: 2022/11/08 20:17:58 by cchauvet ### ########.fr */
/* */
/* ************************************************************************** */
#include "pushswap.h"
void ft_swap(int *a, int *b)
{
int temp;
temp = *a;
*a = *b;
*b = temp;
}