-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_topositive.c
21 lines (19 loc) · 1020 Bytes
/
ft_topositive.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_topositive.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jvico-ga <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/11/05 21:00:43 by jvico-ga #+# #+# */
/* Updated: 2021/11/05 21:09:57 by jvico-ga ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
unsigned long long to_positive(int i)
{
if (i < 0)
return (4294967294 + (i * -1));
else
return (i);
}