summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-03-21 21:17:17 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2023-03-21 21:17:17 +0100
commitc0a7c5ddcb9e0e98f6d981448e7c54fab6621327 (patch)
treed0307493efe92924ad267f6a0c5efb0fc1e16bc3 /util.c
first sketch
Diffstat (limited to 'util.c')
-rw-r--r--util.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/util.c b/util.c
new file mode 100644
index 0000000..2e8a1c8
--- /dev/null
+++ b/util.c
@@ -0,0 +1,11 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+#include "util.h"
+
+void
+die(const char *error)
+{
+ fprintf(stderr, "error: %s\n", error);
+ exit(-1);
+}