moved env functions to libft
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2018/04/08 00:12:36 by tmaze #+# #+# */
|
||||
/* Updated: 2019/03/20 16:46:41 by tmaze ### ########.fr */
|
||||
/* Updated: 2019/12/06 09:57:17 by tmaze ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -119,6 +119,13 @@ typedef struct s_conv
|
||||
int str_size;
|
||||
} t_conv;
|
||||
|
||||
typedef struct s_env
|
||||
{
|
||||
char *key;
|
||||
char *val;
|
||||
struct s_env *next;
|
||||
} t_env;
|
||||
|
||||
/*
|
||||
** Print functions
|
||||
*/
|
||||
@@ -364,4 +371,14 @@ int ft_getline(char **line);
|
||||
int ft_putendl2(char const *s);
|
||||
int ft_putendl_fd2(char const *s, int fd);
|
||||
|
||||
void ft_envdelelem(t_env **elem);
|
||||
void ft_envdel(t_env **env);
|
||||
t_env *ft_envnew(char *env);
|
||||
t_env *ft_envaddend(t_env **alst, t_env *new);
|
||||
t_env *ft_envgetelem(char *key, t_env *env);
|
||||
char *ft_envtochar(t_env *env);
|
||||
char **ft_envtotab(t_env *env);
|
||||
void ft_envclean(t_env **env);
|
||||
char *ft_envupdate(char *key, t_env *env, char *val);;
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user