builtin unset + fixed builtin export

This commit is contained in:
LuckyLaszlo
2021-12-05 18:15:23 +01:00
parent 66183ab441
commit b7b3cec6e0
6 changed files with 159 additions and 75 deletions

View File

@@ -6,7 +6,7 @@
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/08 02:59:58 by lperrey #+# #+# */
/* Updated: 2021/12/05 15:55:07 by lperrey ### ########.fr */
/* Updated: 2021/12/05 17:36:01 by lperrey ### ########.fr */
/* */
/* ************************************************************************** */
@@ -58,8 +58,6 @@ int builtin_cd(int argc, char *argv[], t_all *c);
int builtin_pwd(int argc, char *argv[], t_all *c);
int builtin_export(int argc, char *argv[], t_all *c);
int builtin_unset(int argc, char *argv[], t_all *c);
char *ft_getenv(char *env_var);
size_t ft_getenv_position(char *env_var);
int builtin_exit(int argc, char *argv[], t_all *c);
int builtin_env(int argc, char *argv[], t_all *c);
int builtin_echo(int argc, char *argv[], t_all *c);
@@ -91,6 +89,9 @@ void *ft_dup_2d_arr(void *ptr, void *(*dup_func)(void *));
void ft_perror_io(char *err_str, char *io_file);
int ft_reti_perror_io(int ret, char *err_str, char *io_file);
void ft_free_null(void *ptr);
char *ft_getenv(char *env_var);
size_t ft_getenv_position(char *env_var);
int ft_is_posix_name(char *str);
char **ft_split_quotes(char const *s, char c);
char *ft_strdup_quotes(const char *s);