1
0
mirror of https://github.com/KeyZox71/ft_minipowershell.git synced 2025-05-15 00:28:46 +02:00

🔨」 fix(libft): replaced libft by a better one :D

This commit is contained in:
y-syo
2024-04-29 13:53:00 +02:00
parent 77786466e3
commit 73bb992b01
77 changed files with 1511 additions and 1320 deletions

18
libft/src/int/ft_abs.c Normal file
View File

@ -0,0 +1,18 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_abs.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/10 10:49:03 by mmoussou #+# #+# */
/* Updated: 2024/04/10 10:57:38 by mmoussou ### ########.fr */
/* */
/* ************************************************************************** */
int ft_abs(int n)
{
if (n < 0)
return (-n);
return (n);
}