added put_error_cd2 in put_error_cd.c

This commit is contained in:
Tanguy Maze
2020-01-30 11:03:30 +01:00
parent de2a6e77d7
commit cd72d29c63
4 changed files with 16 additions and 18 deletions

View File

@@ -12,24 +12,6 @@
#include "minishell.h"
void *put_error_cd(char *file, char *msg)
{
ft_putstr("cd: ");
ft_putstr(file);
ft_putstr(": ");
ft_putendl(msg);
return (NULL);
}
int put_error_cd2(char *file, char *msg)
{
ft_putstr("cd: ");
ft_putstr(file);
ft_putstr(": ");
ft_putendl(msg);
return (1);
}
char *check_path_slash_cd(char *exec)
{
int i;