david/ipxe
Archived
1
0

[libc] Add isxdigit()

Signed-off-by: Piotr Jaroszyński <p.jaroszynski@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Piotr Jaroszyński 2010-07-18 17:53:47 +02:00 committed by Michael Brown
parent 380d7c8d45
commit 6e4573bcd0

View File

@ -11,6 +11,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
#define isdigit(c) ((c) >= '0' && (c) <= '9')
#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'))
static inline unsigned char tolower(unsigned char c)
{