-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabs_bonus.c
20 lines (18 loc) · 993 Bytes
/
abs_bonus.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* abs_bonus.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sanglee2 <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/05/13 03:43:49 by sanglee2 #+# #+# */
/* Updated: 2023/05/27 23:13:20 by sanglee2 ### ########.fr */
/* */
/* ************************************************************************** */
#include "push_swap_bonus.h"
int ft_abs(int num)
{
if (num < 0)
num = num * -1;
return (num);
}