-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_swap_ptr.c
20 lines (18 loc) · 978 Bytes
/
ft_swap_ptr.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_swap_ptr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: akharrou <akharrou@student.42.us.org> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/05/27 11:37:30 by akharrou #+# #+# */
/* Updated: 2019/05/27 11:38:16 by akharrou ### ########.fr */
/* */
/* ************************************************************************** */
void ft_swap_ptr(void **a, void **b)
{
void *tmp;
tmp = *a;
*a = *b;
*b = tmp;
}