From 12faf5456d0f2356b6406a0d74ed4559c4a85a41 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Thu, 23 Jan 2020 19:41:24 +0100 Subject: ok but might redo ft_split --- src/ft_exit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ft_exit.c') diff --git a/src/ft_exit.c b/src/ft_exit.c index a5b7276..5a4ef73 100644 --- a/src/ft_exit.c +++ b/src/ft_exit.c @@ -2,11 +2,12 @@ #include #include -void +int ft_exit(uint8_t exit_code) { ft_printf("Exiting program\n"); if (exit_code < 0 || exit_code > 0) ft_printf("Exit code: %hhu\n", exit_code); exit(exit_code); + return (0); } -- cgit v1.2.3