Clean-up: normed out files

This commit is contained in:
Tanguy MAZE
2019-10-17 11:04:04 +02:00
parent d22bc173f1
commit 85af14cd9f
7 changed files with 29 additions and 31 deletions

View File

@@ -6,13 +6,13 @@
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/09/20 14:41:08 by tmaze #+# #+# */
/* Updated: 2019/10/10 14:31:47 by tmaze ### ########.fr */
/* Updated: 2019/10/17 09:59:40 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
int cmd_setenv(char** argv, t_env** env)
int cmd_setenv(char **argv, t_env **env)
{
t_env *new;
@@ -20,10 +20,14 @@ int cmd_setenv(char** argv, t_env** env)
{
lstaddend(env, new);
return (0);
} else if (argv[1]) {
}
else if (argv[1])
{
ft_printf("minishell: setenv: memory error\n");
return (2);
} else {
}
else
{
printf("usage: setenv [KEY]=[value]\n");
return (1);
}