[libc] Add isprint()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2014-01-03 02:21:52 +01:00
parent bf15737cf0
commit a4e8ef72ab
2 changed files with 3 additions and 3 deletions

View File

@@ -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)
{