From 6e4573bcd049576f8890065fc78a2f43c995f45b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20Jaroszy=C5=84ski?=
Date: Sun, 18 Jul 2010 17:53:47 +0200
Subject: [PATCH] [libc] Add isxdigit()
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Piotr JaroszyĆski
Signed-off-by: Michael Brown
---
src/include/ctype.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/include/ctype.h b/src/include/ctype.h
index ed4d8846..9f5127bf 100644
--- a/src/include/ctype.h
+++ b/src/include/ctype.h
@@ -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)
{