-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_get_var_env.c
More file actions
28 lines (25 loc) · 1.06 KB
/
ft_get_var_env.c
File metadata and controls
28 lines (25 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_get_var_env.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: bsautron <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/05/29 11:30:43 by bsautron #+# #+# */
/* Updated: 2015/05/29 11:36:04 by bsautron ### ########.fr */
/* */
/* ************************************************************************** */
#include <ft_sh.h>
t_lstl *ft_get_var_env(char **env)
{
t_lstl *lenv;
int i;
i = 0;
lenv = NULL;
while (env[i])
{
ft_lstl_add_back(&lenv, env[i]);
i++;
}
return (lenv);
}