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