diff options
Diffstat (limited to 'src/ft_exit.c')
-rw-r--r-- | src/ft_exit.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <stdlib.h> #include <inttypes.h> -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); } |