diff options
author | Manoj Srivastava <srivasta@debian.org> | 2020-05-27 16:31:00 -0700 |
---|---|---|
committer | Manoj Srivastava <srivasta@debian.org> | 2020-05-27 16:31:00 -0700 |
commit | d7533e931cfb49a68dc8e6e3f524d49e364cef83 (patch) | |
tree | 06d31523b9647d3de8ce8888f6e83d24f046aa82 /src/z-util.hpp | |
parent | 4e9b9c402ed95bf9a17fd6d795bc49bb4128a6fa (diff) |
New upstream version 2.41-ah~0.git.20200131
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); |