-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_abs.c
19 lines (17 loc) · 1006 Bytes
/
ft_abs.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_abs.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: thakala <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/12/10 11:12:50 by thakala #+# #+# */
/* Updated: 2021/12/10 11:32:04 by thakala ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
#include <string.h>
size_t ft_abs(long value)
{
return ((size_t)(ft_sign(value) * value));
}