42_push_swap/ft_swap.c

23 lines
1021 B
C
Raw Normal View History

2022-11-23 15:44:27 -05:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_swap.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cchauvet <cchauvet@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/08 20:16:30 by cchauvet #+# #+# */
2022-12-01 11:15:17 -05:00
/* Updated: 2022/12/01 16:49:55 by cchauvet ### ########.fr */
2022-11-23 15:44:27 -05:00
/* */
/* ************************************************************************** */
#include "pushswap.h"
2022-12-01 11:15:17 -05:00
void ft_swap(unsigned int *a, unsigned int *b)
2022-11-23 15:44:27 -05:00
{
2022-12-01 11:15:17 -05:00
unsigned int temp;
2022-11-23 15:44:27 -05:00
temp = *a;
*a = *b;
*b = temp;
}