From 15e62510104bc0e2b9180b66e5845d985cac03cc Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Wed, 10 Jan 2024 00:17:29 -0500 Subject: partial (largely untested) memory block device and tar file system support --- kernel/terminal.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'kernel/terminal.cpp') diff --git a/kernel/terminal.cpp b/kernel/terminal.cpp index f017cad..7a878ee 100644 --- a/kernel/terminal.cpp +++ b/kernel/terminal.cpp @@ -74,8 +74,13 @@ namespace mercury::kernel::terminal { } } + void put_string(const char *str, size_t len) { + for (size_t i = 0; i < len; ++i) + put_char(str[i]); + } + void put_string_sz(const char *str) { - for (int i = 0; str[i]; ++i) + for (size_t i = 0; str[i]; ++i) put_char(str[i]); } -- cgit v1.2.3