diff options
| author | ame <[email protected]> | 2023-10-18 16:30:38 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2023-10-18 16:30:38 -0500 |
| commit | 034f54b14416dd411fbd204f8b5465b8bc462b76 (patch) | |
| tree | 6a551b9b4633f2570159eeb83a8f8ac9e1019100 /src/i_util.c | |
| parent | b137acbcb983359568c0b9b2851ef7bbba9617b7 (diff) | |
md5 and sorting improvments
Diffstat (limited to 'src/i_util.c')
| -rw-r--r-- | src/i_util.c | 12 |
1 files changed, 12 insertions, 0 deletions
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 <stdio.h> +#include <stdlib.h> + +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); +} |
