ajout abs, greater, smaller, sign

This commit is contained in:
hugogogo
2021-07-23 17:13:15 +02:00
parent 26147eeeeb
commit 8fd5257b23
6 changed files with 41 additions and 1 deletions

8
srcs/ft_abs.c Normal file
View File

@@ -0,0 +1,8 @@
#include "libft.h"
int ft_abs(int n)
{
if (n < 0)
n *= -1;
return (n);
}