mirror of https://github.com/ipxe/ipxe.git
[libc] Add isxdigit()
Signed-off-by: Piotr Jaroszyński <p.jaroszynski@gmail.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/1/head
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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue