summaryrefslogtreecommitdiff
path: root/kernel/tty.h
diff options
context:
space:
mode:
authordzwdz2021-06-25 16:27:19 +0200
committerdzwdz2021-06-25 16:27:19 +0200
commit654ca8603381ffa385350242cfb96906cf612279 (patch)
tree9fc9b3ff19932c0061efe96c84ba780a6d5b9e0f /kernel/tty.h
parentf60d40f3bf4dfe8ed6f63a27367d323319a4ef97 (diff)
tty_const
Diffstat (limited to 'kernel/tty.h')
-rw-r--r--kernel/tty.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/tty.h b/kernel/tty.h
index 435c87f..3dc1525 100644
--- a/kernel/tty.h
+++ b/kernel/tty.h
@@ -1,7 +1,8 @@
#pragma once
-
#include <stddef.h>
void tty_putchar(char c);
void tty_write(const char *buf, size_t len);
void tty_clear();
+
+#define tty_const(str) tty_write(str, sizeof(str) - 1)