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_sign.c Normal file
View File

@@ -0,0 +1,8 @@
#include "libft.h"
int ft_sign(int i)
{
if (i < 0)
return (-1);
return (1);
}