summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/util.c b/util.c
new file mode 100644
index 0000000..a46f853
--- /dev/null
+++ b/util.c
@@ -0,0 +1,7 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+void eprint(char *msg) {
+ fprintf(stderr, "error: %s\n", msg);
+ exit(1);
+}