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)); -} +}*/