aboutsummaryrefslogtreecommitdiff
path: root/sys/cmd/menu/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/cmd/menu/util.h')
-rw-r--r--sys/cmd/menu/util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/cmd/menu/util.h b/sys/cmd/menu/util.h
new file mode 100644
index 0000000..289720a
--- /dev/null
+++ b/sys/cmd/menu/util.h
@@ -0,0 +1,6 @@
+/* See LICENSE file for copyright and license details. */
+
+#define BETWEEN(X, A, B) ((A) <= (X) && (X) <= (B))
+
+void die(const char *fmt, ...);
+void *ecalloc(size_t nmemb, size_t size);