diff options
author | Michael Brown | 2014-01-03 02:21:52 +0100 |
---|---|---|
committer | Michael Brown | 2014-01-06 01:46:20 +0100 |
commit | a4e8ef72ab523568fa5c1cd356a3c14f8403d2e4 (patch) | |
tree | 9d4566eddb037a0edb81a362bd303414546ac0c5 /src/include/ctype.h | |
parent | [build] Build ROMs used by qemu and VMware as part of "make all" (diff) | |
download | ipxe-a4e8ef72ab523568fa5c1cd356a3c14f8403d2e4.tar.gz ipxe-a4e8ef72ab523568fa5c1cd356a3c14f8403d2e4.tar.xz ipxe-a4e8ef72ab523568fa5c1cd356a3c14f8403d2e4.zip |
[libc] Add isprint()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ctype.h')
-rw-r--r-- | src/include/ctype.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/ctype.h b/src/include/ctype.h index 9f5127bf..e92ecb1c 100644 --- a/src/include/ctype.h +++ b/src/include/ctype.h @@ -12,6 +12,7 @@ FILE_LICENCE ( GPL2_OR_LATER ); #define islower(c) ((c) >= 'a' && (c) <= 'z') #define isupper(c) ((c) >= 'A' && (c) <= 'Z') #define isxdigit(c) (isdigit(c) || ((c) >= 'A' && (c) <= 'F') || ((c) >= 'a' && (c) <= 'f')) +#define isprint(c) ((c) >= ' ' && (c) <= '~' ) static inline unsigned char tolower(unsigned char c) { |