adding labs

This commit is contained in:
hugogogo
2026-05-07 11:46:03 +02:00
parent 36379f56b0
commit 413e149003
7 changed files with 31 additions and 14 deletions

8
srcs/ft_labs.c Normal file
View File

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