diff options
author | Freya Murphy <freya@freyacat.org> | 2025-04-17 00:51:46 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-04-17 00:51:46 -0400 |
commit | f3e6838b44a5b37ce7664db5b8662e3d02e5f539 (patch) | |
tree | e97eeeabab78ba2c84d3b0069c8db9911cd021b2 /kernel/lib/isprint.c | |
parent | fmt (diff) | |
download | comus-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.c | 6 |
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)); +} |