-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_swap.c
20 lines (18 loc) · 977 Bytes
/
ft_swap.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_swap.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ochouati <ochouati@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/25 18:13:53 by ochouati #+# #+# */
/* Updated: 2024/01/25 18:14:02 by ochouati ### ########.fr */
/* */
/* ************************************************************************** */
void ft_swap(int *xp, int *yp)
{
int temp;
temp = *xp;
*xp = *yp;
*yp = temp;
}