-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_swapint.c
24 lines (21 loc) · 1 KB
/
ft_swapint.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_swapint.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: achambon <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/01/06 14:17:16 by achambon #+# #+# */
/* Updated: 2017/01/06 14:20:19 by achambon ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_swapint(size_t *a, size_t *b)
{
size_t *tmp;
if (!a || !b)
return ;
*tmp = *b;
*b = *a;
*a = *tmp;
}