ca compile
This commit is contained in:
parent
7c74e22884
commit
d09f223683
2 changed files with 0 additions and 38 deletions
|
|
@ -31,7 +31,6 @@ OBJ_DIR = objs/
|
|||
|
||||
SRC_BASE = \
|
||||
builtin/bt_cd_process_dotdot.c\
|
||||
builtin/bt_env_get.c\
|
||||
builtin/bt_env_opt.c\
|
||||
builtin/bt_read_get.c\
|
||||
builtin/bt_read_term.c\
|
||||
|
|
|
|||
|
|
@ -1,37 +0,0 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* bt_env_opt.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2017/03/25 20:39:54 by jhalford #+# #+# */
|
||||
/* Updated: 2017/03/25 20:41:58 by jhalford ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "minishell.h"
|
||||
|
||||
int bt_env_opt_i(char *opt_arg, t_env_data *data)
|
||||
{
|
||||
(void)opt_arg;
|
||||
ft_tabdel(&data->custom_env);
|
||||
return (0);
|
||||
}
|
||||
|
||||
int bt_env_opt_u(char *opt_arg, t_env_data *data)
|
||||
{
|
||||
int i;
|
||||
char **env;
|
||||
|
||||
if (!(env = data->custom_env))
|
||||
return (0);
|
||||
i = -1;
|
||||
while (env[++i])
|
||||
{
|
||||
if (ft_strcmp(env[i], opt_arg) == '='
|
||||
&& ft_strlen(opt_arg) == ft_strlenchr(env[i], '='))
|
||||
ft_sstrdel(env, i);
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
Loading…
Reference in a new issue