[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:
parent
380d7c8d45
commit
6e4573bcd0
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user