src/error_handling.c
/*
**	This function just outputs an error message and cleanly exits.
*/
This function just outputs an error message and cleanly exits.
This function just outputs an error message and cleanly exits .
static void		error(int ln, char *line, char *error_msg)
{
	ft_putstr(error_msg);
	ft_putstr(" at line ");
	ft_putnbr(ln);
	ft_putstr(":\n");
	ft_putstr(line);
	ft_putstr("\n");
	ft_strdel(&line);
	cleanup();
	exit(EXIT_FAILURE);
}
static void error ( int ln , char * line , char * error_msg ) { ft_putstr ( error_msg ) ; ft_putstr ( " " ) ; ft_putnbr ( ln ) ; ft_putstr ( " \n " ) ; ft_putstr ( line ) ; ft_putstr ( " \n " ) ; ft_strdel ( & line ) ; cleanup ( ) ; exit ( EXIT_FAILURE ) ; }
This function just outputs an error message and cleanly exits.
This function just outputs an error message and cleanly exits .