diff options
author | Piotr Jaroszyński | 2010-07-18 17:53:47 +0200 |
---|---|---|
committer | Michael Brown | 2010-08-17 15:44:27 +0200 |
commit | 6e4573bcd049576f8890065fc78a2f43c995f45b (patch) | |
tree | a4a86ad869722979aa8120ab69b24b7e0951c6c5 /src/include/ctype.h | |
parent | [settings] Export find_setting() (diff) | |
download | ipxe-6e4573bcd049576f8890065fc78a2f43c995f45b.tar.gz ipxe-6e4573bcd049576f8890065fc78a2f43c995f45b.tar.xz ipxe-6e4573bcd049576f8890065fc78a2f43c995f45b.zip |
[libc] Add isxdigit()
Signed-off-by: Piotr Jaroszyński <p.jaroszynski@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ctype.h')
-rw-r--r-- | src/include/ctype.h | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |