1 2 3 4 5 6 7 8 9 10 11 12
#include <libft.h> #include <stdlib.h> #include <inttypes.h> void 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); }