maxishell
Implementation of a shell for Linux-like systems
Loading...
Searching...
No Matches
ft_abs.c
Go to the documentation of this file.
1
/* ************************************************************************** */
2
/* */
3
/* ::: :::::::: */
4
/* ft_abs.c :+: :+: :+: */
5
/* +:+ +:+ +:+ */
6
/* By: rmikhayl <marvin@42.fr> +#+ +:+ +#+ */
7
/* +#+#+#+#+#+ +#+ */
8
/* Created: 2024/05/15 14:49:45 by rmikhayl #+# #+# */
9
/* Updated: 2024/05/15 14:49:49 by rmikhayl ### ########.fr */
10
/* */
11
/* ************************************************************************** */
12
13
#include "
libft.h
"
14
15
int
ft_abs
(
int
n)
16
{
17
if
(n < 0)
18
return
(-n);
19
return
(n);
20
}
ft_abs
int ft_abs(int n)
Definition
ft_abs.c:15
libft.h
lib
libft
src
ft_abs.c
Generated by
1.9.8