Restart from scratch
branched out on dev removed all previous source files started test on new env2lst function
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2018/11/18 13:12:34 by tmaze #+# #+# */
|
||||
/* Updated: 2019/02/01 10:19:53 by tmaze ### ########.fr */
|
||||
/* Updated: 2019/09/19 17:08:15 by tmaze ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -17,37 +17,4 @@
|
||||
# include <sys/stat.h>
|
||||
# include "libft.h"
|
||||
|
||||
typedef struct s_builtin
|
||||
{
|
||||
char *cmd;
|
||||
int (*f)(char **argv, t_list **env);
|
||||
} t_builtin;
|
||||
|
||||
typedef struct s_envelem
|
||||
{
|
||||
char *key;
|
||||
char *val;
|
||||
} t_envelem;
|
||||
|
||||
t_envelem *elem_new(char *key, char *val);
|
||||
t_envelem *env_getelemfromkey(char *key, t_list *env);
|
||||
t_envelem *env_addupdate(char *key, char *val, t_list **env);
|
||||
void env_delelem(char *key, t_list **env);
|
||||
|
||||
t_envelem *ft_envtoenvelem(char *env);
|
||||
void ft_lstdelenvelem(void *content, size_t size);
|
||||
void ft_envelemdel(t_envelem **env);
|
||||
t_list *ft_envtolst(char **env);
|
||||
|
||||
int exec_cmd(char **argv, t_list **env);
|
||||
int cmd_echo(char **argv, t_list **env);
|
||||
int cmd_cd(char **argv, t_list **env);
|
||||
int cmd_env(char **argv, t_list **env);
|
||||
int cmd_setenv(char **argv, t_list **env);
|
||||
int cmd_unsetenv(char **argv, t_list **env);
|
||||
|
||||
int ft_isin(char *str, char c);
|
||||
char *check_path_slash(char *exec);
|
||||
char *check_path_dot(char *exec, t_list *env);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user