-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_abs.c
18 lines (16 loc) · 960 Bytes
/
ft_abs.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_abs.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mgiraldo <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/25 15:51:20 by mgiraldo #+# #+# */
/* Updated: 2020/02/25 15:54:26 by mgiraldo ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_abs(int n)
{
return (n < 0 ? -n : n);
}