diff --git a/builtins/builtins.h b/builtins/builtins.h index faf28bc..25ab11a 100644 --- a/builtins/builtins.h +++ b/builtins/builtins.h @@ -6,7 +6,7 @@ /* By: cchauvet +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/02/24 10:17:59 by erey-bet #+# #+# */ -/* Updated: 2023/03/30 15:04:47 by erey-bet ### ########.fr */ +/* Updated: 2023/04/05 12:16:37 by erey-bet ### ########.fr */ /* */ /* ************************************************************************** */ @@ -24,14 +24,14 @@ static int error(int err, char *reason, char *problem) return (err); } -int ft_exit(char **args) +int ft_exit(char **args, int err) { int err; if (args[0] == NULL) { write(1, "exit\n", 6); - return (0); + return (err); } err = ft_atoi_check(args[0]); if (err == 1)