This commit is contained in:
Camille Chauvet 2023-02-17 18:24:24 +01:00
parent 3ce5b64420
commit e709eb0dbb
2 changed files with 15 additions and 15 deletions

Binary file not shown.

View File

@ -6,7 +6,7 @@
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/02/14 13:45:30 by cchauvet #+# #+# */
/* Updated: 2023/02/17 18:21:53 by cchauvet ### ########.fr */
/* Updated: 2023/02/17 18:24:08 by cchauvet ### ########.fr */
/* */
/* ************************************************************************** */
@ -43,23 +43,23 @@ char *ft_env_filler(t_list **env, const char *str);
char **env_to_strs(t_list **head);
/* Environnement */
t_list **init_env(char **env);
char **env_to_strs(t_list **head);
int create_value_by_key(char *key, char *value, t_list **head);
int set_value_by_key(char *key, char *value, t_list **head);
char *get_value_by_key(char *key, t_list **head);
int get_index(char *s, char c);
void swap_env_3(void **a, void **b, void **c);
void swap_env(void **a, void **b);
void env_del(void *ptr);
char **env_to_strs(t_list **head);
char *get_value(char *str);
char *get_key(char *str);
t_list **init_env(char **env);
char **env_to_strs(t_list **head);
int create_value_by_key(char *key, char *value, t_list **head);
int set_value_by_key(char *key, char *value, t_list **head);
char *get_value_by_key(char *key, t_list **head);
int get_index(char *s, char c);
void swap_env_3(void **a, void **b, void **c);
void swap_env(void **a, void **b);
void env_del(void *ptr);
char **env_to_strs(t_list **head);
char *get_value(char *str);
char *get_key(char *str);
/* Echo */
int echo(int fd, char *str);
int echo(int fd, char *str);
/* PWD */
int pwd(t_list **env, int fd);
int pwd(t_list **env, int fd);
typedef struct s_cmd
{