aboutsummaryrefslogtreecommitdiffstats
path: root/include/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/util.h')
-rw-r--r--include/util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/util.h b/include/util.h
new file mode 100644
index 0000000..97435be
--- /dev/null
+++ b/include/util.h
@@ -0,0 +1,5 @@
+#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
+
+void die(const char *fmt, ...);
+
+#define writeputs(str) write(STDOUT_FILENO, str, strlen(str));