src/misc.c
/*
**	This function just outputs an error message and cleanly exits in the event
**	that the input file can't be opened.
*/
This function just outputs an error message and cleanly exits in the event
that the input file can't be opened.
This function just outputs an error message and cleanly exits in the event that the input file can ' t be opened .
void		read_error(char *filename)
{
	ft_putstr("ERROR: Can't open \"");
	ft_putstr(filename);
	ft_putendl("\".");
	cleanup();
	exit(EXIT_FAILURE);
}
void read_error ( char * filename ) { ft_putstr ( " \" " ) ; ft_putstr ( filename ) ; ft_putendl ( " \" " ) ; cleanup ( ) ; exit ( EXIT_FAILURE ) ; }
This function just outputs an error message and cleanly exits in the event
that the input file can't be opened.
This function just outputs an error message and cleanly exits in the event that the input file can ' t be opened .