-
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) · 960 Bytes
/
ft_abs.c
File metadata and controls
18 lines (16 loc) · 960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_abs.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tyassine <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/07 18:34:05 by tyassine #+# #+# */
/* Updated: 2016/11/07 18:34:09 by tyassine ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_abs(int n)
{
return (n < 0 ? -n : n);
}