/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* error.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: jschaft +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/04/23 14:15:12 by mcolonna #+# #+# */ /* Updated: 2024/06/13 13:50:43 by mcolonna ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef ERROR_H # define ERROR_H # include "include.h" // Set the global mc freed when exit. void set_global_mc(t_memclass mc); // Call to show an error. // If msg == "errno", use perror() void minishell_error(const char *msg); // Show the errno error and exit the program. void fatal_error(const char *msg); // Show a specific message and exit the program. void fatal_error_msg(const char *msg); #endif