-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathutils2.c
More file actions
32 lines (28 loc) · 1.06 KB
/
utils2.c
File metadata and controls
32 lines (28 loc) · 1.06 KB
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* utils2.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lray <lray@student.42lausanne.ch > +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/31 21:16:41 by lray #+# #+# */
/* Updated: 2023/10/31 21:17:10 by lray ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
void arr_show(char **arr)
{
size_t i;
i = 0;
if (arr)
{
while (arr[i])
printf("%s\n", arr[i++]);
}
}
int ft_abs(int n)
{
if (n < 0)
n *= -1;
return (n);
}