-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_abs.c
More file actions
18 lines (17 loc) · 978 Bytes
/
ft_abs.c
File metadata and controls
18 lines (17 loc) · 978 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_abs.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: nle-roux <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/12/11 11:05:32 by nle-roux #+# #+# */
/* Updated: 2023/12/11 11:06:08 by nle-roux ### ########.fr */
/* */
/* ************************************************************************** */
int ft_abs(int number)
{
if (number < 0)
return (number * -1);
return (number);
}