summaryrefslogtreecommitdiff
path: root/src/z-util.hpp
diff options
context:
space:
mode:
authorManoj Srivastava <srivasta@debian.org>2020-05-27 16:31:00 -0700
committerManoj Srivastava <srivasta@debian.org>2020-05-27 16:31:00 -0700
commitd7533e931cfb49a68dc8e6e3f524d49e364cef83 (patch)
tree06d31523b9647d3de8ce8888f6e83d24f046aa82 /src/z-util.hpp
parent4e9b9c402ed95bf9a17fd6d795bc49bb4128a6fa (diff)
New upstream version 2.41-ah~0.git.20200131
Diffstat (limited to 'src/z-util.hpp')
-rw-r--r--src/z-util.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/z-util.hpp b/src/z-util.hpp
new file mode 100644
index 00000000..e6225ea4
--- /dev/null
+++ b/src/z-util.hpp
@@ -0,0 +1,17 @@
+#pragma once
+
+/* Aux functions */
+extern void (*plog_aux)(const char *);
+extern void (*quit_aux)(const char *);
+
+/* Print an error message */
+void plog(const char *str);
+
+/* Exit, with optional message */
+void quit(const char *str);
+
+/**
+ * Capitalize the first letter of string. Ignores whitespace
+ * at the start of string.
+ */
+void capitalize(char *s);