diff options
| author | Ian McFarlane <i.mcfarlane2002@gmail.com> | 2025-04-17 14:19:40 -0400 |
|---|---|---|
| committer | Ian McFarlane <i.mcfarlane2002@gmail.com> | 2025-04-17 14:19:40 -0400 |
| commit | 7108e7c951f7cff79ce4992f1c7d8d0af0bb5af6 (patch) | |
| tree | e99684b87952bded5e51c83848a5d35ab53d9ab0 /kernel/lib/isprint.c | |
| parent | starting on ata (diff) | |
| parent | clang 18 in flake instead of zig (diff) | |
| download | comus-7108e7c951f7cff79ce4992f1c7d8d0af0bb5af6.tar.gz comus-7108e7c951f7cff79ce4992f1c7d8d0af0bb5af6.tar.bz2 comus-7108e7c951f7cff79ce4992f1c7d8d0af0bb5af6.zip | |
Merge branch 'main' into ata
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)); +} |