/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_exit.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: bchanot +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/01/23 20:00:55 by bchanot #+# #+# */ /* Updated: 2018/10/29 12:15:07 by bchanot ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" #include void ft_exit(const char *const s, int fd) { if (s) ft_putendl_fd(s, fd); exit(fd == 1 ? EXIT_SUCCESS : EXIT_FAILURE); }