summaryrefslogtreecommitdiff
path: root/kernel/terminal.cpp
diff options
context:
space:
mode:
authorBenji Dial <benji@benjidial.net>2024-01-10 00:17:29 -0500
committerBenji Dial <benji@benjidial.net>2024-01-10 00:17:29 -0500
commit15e62510104bc0e2b9180b66e5845d985cac03cc (patch)
treefa950c29622823a825a523e63de610746a70cbe1 /kernel/terminal.cpp
parentc2f48fb5df0981df1df23de2b277274f9fe75080 (diff)
downloadhilbert-os-15e62510104bc0e2b9180b66e5845d985cac03cc.tar.gz
partial (largely untested) memory block device and tar file system support
Diffstat (limited to 'kernel/terminal.cpp')
-rw-r--r--kernel/terminal.cpp7
1 files changed, 6 insertions, 1 deletions
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]);
}