diff options
Diffstat (limited to 'src/z-util.hpp')
-rw-r--r-- | src/z-util.hpp | 17 |
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); |