-
Notifications
You must be signed in to change notification settings - Fork 0
/
utils.c
32 lines (28 loc) · 1.06 KB
/
utils.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* utils.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mcoskune <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/25 10:01:38 by mcoskune #+# #+# */
/* Updated: 2024/06/29 12:13:13 by mcoskune ### ########.fr */
/* */
/* ************************************************************************** */
#include "push_swap.h"
void ft_putstr(char *str)
{
int i;
i = 0;
while (str[i])
{
write(1, &str[i], 1);
i++;
}
}
int abso(int num)
{
if (num < 0)
return (-num);
return (num);
}