From 00dc583ff853451ee2469027b4893d30698434cf Mon Sep 17 00:00:00 2001 From: Etienne Rey-bethbeder Date: Tue, 28 Feb 2023 14:51:39 +0100 Subject: [PATCH] =?UTF-8?q?=E5=8D=8D=E5=8D=8D=E5=8D=8D=E5=8D=8D=E5=8D=8D?= =?UTF-8?q?=E5=8D=8D=E5=8D=8D=E5=8D=8D=E5=8D=8D=E5=8D=8D=E5=8D=8D=E5=8D=8D?= =?UTF-8?q?=E5=8D=8D=E5=8D=8D=E5=8D=8D=E5=8D=8D=E5=8D=8D=E5=8D=8D=E5=8D=8D?= =?UTF-8?q?=E5=8D=8D=E5=8D=8D=E5=8D=8D=E5=8D=8D=E5=8D=8D=E5=8D=8D=E5=8D=8D?= =?UTF-8?q?=E5=8D=8D=E5=8D=8D=E5=8D=8D=E5=8D=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- builtins/exit.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/builtins/exit.c b/builtins/exit.c index 8da9b78..2c6b3c6 100644 --- a/builtins/exit.c +++ b/builtins/exit.c @@ -6,7 +6,7 @@ /* By: erey-bet +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/02/24 10:17:59 by erey-bet #+# #+# */ -/* Updated: 2023/02/28 14:40:05 by erey-bet ### ########.fr */ +/* Updated: 2023/02/28 14:50:24 by erey-bet ### ########.fr */ /* */ /* ************************************************************************** */ @@ -37,11 +37,11 @@ int ft_exit(char **args, int fd) return (error(-1, "too many arguments", NULL, fd)); if (err > 0) return(error(err, "numeric argument required", args[0], fd)); - return (ft_atoi(args[0]) % 256); + return ((ft_atoi(args[0]) % 256 + 256) % 256); } -int main(int argc, char *argv[]) +/*int main(int argc, char *argv[]) { (void)argc; return(ft_exit(argv + 1, 1)); -} +}*/