-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_abs.c
More file actions
18 lines (16 loc) · 962 Bytes
/
ft_abs.c
File metadata and controls
18 lines (16 loc) · 962 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_abs.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: juazouz <juazouz@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/11/24 18:12:21 by juazouz #+# #+# */
/* Updated: 2018/11/24 18:19:31 by juazouz ### ########.fr */
/* */
/* ************************************************************************** */
#include "fillit.h"
int ft_abs(int n)
{
return (n > 0 ? n : -n);
}