diff options
| author | _ov4 <ov4@ov4.org> | 2026-09-02 12:47:47 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-09-02 12:47:47 +0000 |
| commit | a7fb1e44cbb843587170d7072be47d59d1328c54 (patch) | |
| tree | fcd3d8cf0a5675d97ba9f2c3b6c2392ebf2c62c7 /include/util/io.h | |
| parent | 864d36c4e23fc3834e4998641bbb028b7e3e4ee6 (diff) | |
const char*
Diffstat (limited to 'include/util/io.h')
| -rw-r--r-- | include/util/io.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/util/io.h b/include/util/io.h index 52984c5..aaeac02 100644 --- a/include/util/io.h +++ b/include/util/io.h @@ -25,16 +25,16 @@ struct LogVoidify { void operator&(std::ostream&) const {} }; inline constexpr int DECIMAL = 10; inline constexpr int LENGTH = 32; -void safe_print(char *s, bool ignore_wrap = false); +void safe_print(const char *s, bool ignore_wrap = false); void safe_print(int x); -void safe_debug(char *s, bool ignore_wrap = false); +void safe_debug(const char *s, bool ignore_wrap = false); void safe_debug(int x); -bool isnum(char *s); -void reverse(char str[], int length); +bool isnum(const char *s); +void reverse(char *str, int length); char *itoa(int num, char* str, int base); void usage(void); -void unix_error(char *msg); -void app_error(char *msg); +void unix_error(const char *msg); +void app_error(const char *msg); } |
