22 lines
1.0 kB
1/* ************************************************************************** */
2/* */
3/* ::: :::::::: */
4/* die.c :+: :+: :+: */
5/* +:+ +:+ +:+ */
6/* By: ohaponiu <marvin@42.fr> +#+ +:+ +#+ */
7/* +#+#+#+#+#+ +#+ */
8/* Created: 2026/04/21 14:20:11 by ohaponiu #+# #+# */
9/* Updated: 2026/05/02 13:29:02 by ohaponiu ### ########.fr */
10/* */
11/* ************************************************************************** */
12
13#include "cli.h"
14#include <libft.h>
15#include <stdlib.h>
16#include <unistd.h>
17
18void die(int status)
19{
20 ft_dprintf(STDERR_FILENO, "Error\n");
21 exit(status);
22}