-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_env.c
29 lines (25 loc) · 1.05 KB
/
ft_env.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_env.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rlutsch <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/08/05 15:36:11 by rlutsch #+# #+# */
/* Updated: 2016/08/07 14:45:28 by rlutsch ### ########.fr */
/* */
/* ************************************************************************** */
#include "21sh.h"
void **ft_env()
{
extern char **environ;
int i;
i = 0;
i = ft_tablen(environ);
while(--i)
{
ft_putstr(environ[i]);
ft_putstr("\n");
}
return (0);
}