diff options
Diffstat (limited to 'lib/libc/ctype/isprint.c')
| -rw-r--r-- | lib/libc/ctype/isprint.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libc/ctype/isprint.c b/lib/libc/ctype/isprint.c new file mode 100644 index 00000000..76524050 --- /dev/null +++ b/lib/libc/ctype/isprint.c @@ -0,0 +1,8 @@ +#include <libc.h> + +int isprint(int c) +{ + return (unsigned)c - 0x20 < 0x5f; +} + +weak_reference(isprint, isprint_l); |
