libft
src
ft_abs.c
Go to the documentation of this file.
1
/* ************************************************************************** */
3
/* */
4
/* ::: :::::::: */
5
/* ft_abs.c :+: :+: :+: */
6
/* +:+ +:+ +:+ */
7
/* By: unite <marvin@42.fr> +#+ +:+ +#+ */
8
/* +#+#+#+#+#+ +#+ */
9
/* Created: 2020/05/17 02:02:23 by unite #+# #+# */
10
/* Updated: 2020/07/16 03:05:58 by unite ### ########.fr */
11
/* */
12
/* ************************************************************************** */
13
21
int
ft_abs
(
int
a)
22
{
23
return
(a < 0 ? -a : a);
24
}
ft_abs
int ft_abs(int a)
Returns the absolute value of the argument.
Definition:
ft_abs.c:21
Generated by
1.8.16