-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_swap.c
executable file
·22 lines (20 loc) · 980 Bytes
/
ft_swap.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_swap.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mberger <mberger@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/08/06 14:07:39 by mberger #+# #+# */
/* Updated: 2014/12/30 12:37:48 by mberger ### ########.fr */
/* */
/* ************************************************************************** */
void ft_swap(int *a, int *b)
{
int x;
int y;
x = *b;
y = *a;
*a = x;
*b = y;
}