-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathft_swap.c
20 lines (18 loc) · 971 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: vbrazas <vbrazas@student.unit.ua> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/10/24 17:21:03 by vbrazas #+# #+# */
/* Updated: 2017/10/24 17:30:48 by vbrazas ### ########.fr */
/* */
/* ************************************************************************** */
void ft_swap(int *a, int *b)
{
int buff;
buff = *a;
*a = *b;
*b = buff;
}