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:
18
libft/src/int/ft_abs.c
Normal file
18
libft/src/int/ft_abs.c
Normal 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);
|
||||
}
|
Reference in New Issue
Block a user