expand_redirection() : rejoin token list on error
+ words_expansions.c -> expansions.c + generic.c misc
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2021/10/08 09:25:35 by lperrey #+# #+# */
|
||||
/* Updated: 2021/12/05 17:35:32 by lperrey ### ########.fr */
|
||||
/* Updated: 2021/12/11 20:16:36 by lperrey ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -202,13 +202,13 @@ void *ft_lstnew_generic(size_t lst_size, size_t content_size)
|
||||
|
||||
void ft_perror_io(char *err_str, char *io_file)
|
||||
{
|
||||
ft_putstr_fd(err_str, 2);
|
||||
ft_putstr_fd(err_str, STDERR_FILENO);
|
||||
perror(io_file);
|
||||
}
|
||||
|
||||
int ft_reti_perror_io(int ret, char *err_str, char *io_file)
|
||||
{
|
||||
ft_putstr_fd(err_str, 2);
|
||||
ft_putstr_fd(err_str, STDERR_FILENO);
|
||||
perror(io_file);
|
||||
return (ret);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user