summaryrefslogtreecommitdiff
path: root/kernel/lib/isprint.c
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-04-17 00:51:46 -0400
committerFreya Murphy <freya@freyacat.org>2025-04-17 00:51:46 -0400
commitf3e6838b44a5b37ce7664db5b8662e3d02e5f539 (patch)
treee97eeeabab78ba2c84d3b0069c8db9911cd021b2 /kernel/lib/isprint.c
parentfmt (diff)
downloadcomus-f3e6838b44a5b37ce7664db5b8662e3d02e5f539.tar.gz
comus-f3e6838b44a5b37ce7664db5b8662e3d02e5f539.tar.bz2
comus-f3e6838b44a5b37ce7664db5b8662e3d02e5f539.zip
font rending in framebuffer yay!!
Diffstat (limited to 'kernel/lib/isprint.c')
-rw-r--r--kernel/lib/isprint.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/lib/isprint.c b/kernel/lib/isprint.c
new file mode 100644
index 0000000..e5582dc
--- /dev/null
+++ b/kernel/lib/isprint.c
@@ -0,0 +1,6 @@
+#include <lib.h>
+
+int isprint(int c)
+{
+ return ((unsigned)(c - 0x20) <= (0x7e - 0x20));
+}