aboutsummaryrefslogtreecommitdiff
path: root/include/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/util.h')
-rwxr-xr-xinclude/util.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/util.h b/include/util.h
new file mode 100755
index 0000000..9418824
--- /dev/null
+++ b/include/util.h
@@ -0,0 +1,11 @@
+#ifndef _UTIL_H_
+#define _UTIL_H_
+#include <stdnoreturn.h>
+
+/**
+ * Kill program by printing message `*s` and errno.
+ *
+ * Shuts down ncurses before killing program.
+ */
+noreturn void die(const char *s);
+#endif