From: Piotr Jaroszyński Date: Sun, 18 Jul 2010 15:53:47 +0000 (+0200) Subject: [libc] Add isxdigit() X-Git-Tag: v1.20.1~2578 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e4573bcd049576f8890065fc78a2f43c995f45b;p=thirdparty%2Fipxe.git [libc] Add isxdigit() Signed-off-by: Piotr Jaroszyński Signed-off-by: Michael Brown --- diff --git a/src/include/ctype.h b/src/include/ctype.h index ed4d88469..9f5127bf1 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) {