aboutsummaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-03-20 15:21:21 +0100
committerNathan Reiner <nathan@nathanreiner.xyz>2023-03-20 15:21:21 +0100
commit05e97f8346521b50fbedcc2e7d0679e297d4d98b (patch)
tree6f0a909ffd1c5bcf5e1b95fa7ae61d721826e7db /util.c
make first sketch of bar using freetype2 instead of cairo
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);
+}