From 4c00c7fb9a648e336973de6d4d40f535dab1410c Mon Sep 17 00:00:00 2001 From: ame Date: Wed, 18 Oct 2023 16:30:38 -0500 Subject: md5 and sorting improvments --- src/i_util.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/i_util.c (limited to 'src/i_util.c') diff --git a/src/i_util.c b/src/i_util.c new file mode 100644 index 0000000..3e077f4 --- /dev/null +++ b/src/i_util.c @@ -0,0 +1,12 @@ +#include "i_util.h" +#include +#include + +void p_fatal(const char* m){ + fprintf(stderr, "%s[ fatal ] %s %s\n",color_red, m, color_reset); + exit(EXIT_FAILURE); +} + +void p_error(const char* m){ + fprintf(stderr, "%s[ error ]%s %s\n",color_red, color_reset, m); +} -- cgit v1.2.3