24 lines
1.0 KiB
C
24 lines
1.0 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_envgetelem.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2019/12/05 16:46:17 by tmaze #+# #+# */
|
|
/* Updated: 2019/12/05 16:47:00 by tmaze ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "libft.h"
|
|
|
|
t_env *ft_envgetelem(char *key, t_env *env)
|
|
{
|
|
t_env *it;
|
|
|
|
it = env;
|
|
while (it && !ft_strequ(it->key, key))
|
|
it = it->next;
|
|
return (it);
|
|
}
|