From a7fb1e44cbb843587170d7072be47d59d1328c54 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Wed, 2 Sep 2026 12:47:47 +0000 Subject: const char* --- include/util/io.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'include/util') 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); } -- cgit v1.3.1-4-g156e