-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_abs.c
20 lines (18 loc) · 995 Bytes
/
ft_abs.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_abs.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: npimenof <npimenof@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/12/04 11:02:21 by npimenof #+# #+# */
/* Updated: 2020/10/06 13:08:22 by npimenof ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
unsigned long long ft_abs(long long n)
{
if (n < 0)
return (-n);
return (n);
}