diff options
| author | ame <[email protected]> | 2023-10-15 22:45:54 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2023-10-15 22:45:54 -0500 |
| commit | ea8f0940f041d33c0085bed59773093333a4fd99 (patch) | |
| tree | 636683752d2426147c076d5b64d1831ca430a979 /src/util.c | |
init
Diffstat (limited to 'src/util.c')
| -rw-r--r-- | src/util.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c new file mode 100644 index 0000000..6c16699 --- /dev/null +++ b/src/util.c @@ -0,0 +1,12 @@ +#include "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); +} |
