cd refactoring, error_wrappers

This commit is contained in:
LuckyLaszlo
2021-12-05 16:28:41 +01:00
parent c3a9035622
commit 66183ab441
4 changed files with 16 additions and 21 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/04 19:09:42 by lperrey ### ########.fr */
/* Updated: 2021/12/05 15:55:07 by lperrey ### ########.fr */
/* */
/* ************************************************************************** */
@@ -71,8 +71,8 @@ void close_pipeline_fd(t_cmd *pipeline[]);
typedef void (*t_free_f)(void *); // generic
// Error wrappers
void shell_error(char *s1, char *s2);
void shell_perror(char *s1, char *s2, char *s3);
int shell_error(char *s1, char *s2, char *s3, int ret_val);
int shell_perror(char *s1, char *s2, char *s3, int ret_val);
// Generic
char *ft_strjoinfree(char *s1, char *s2);