-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isenv.c
24 lines (22 loc) · 1.05 KB
/
ft_isenv.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isenv.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lbopp <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/01/29 12:51:27 by lbopp #+# #+# */
/* Updated: 2017/02/05 16:00:48 by lbopp ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isenv(t_lst *env_lst, char *var)
{
while (env_lst != NULL)
{
if (!ft_strcmp(env_lst->name, var))
return (1);
env_lst = env_lst->next;
}
return (0);
}