aboutsummaryrefslogtreecommitdiffstats
path: root/include/dbs/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/dbs/util.h')
-rw-r--r--include/dbs/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/dbs/util.h b/include/dbs/util.h
new file mode 100644
index 0000000..bad4a33
--- /dev/null
+++ b/include/dbs/util.h
@@ -0,0 +1,3 @@
+#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
+
+#define writeputs(str) write(STDOUT_FILENO, str, strlen(str));