[3c90x] Remove src/drivers/3c90x.txt
[gpxe.git] / src / include / ctype.h
blob7740443d98884e38bc6e171552774da633829790
1 #ifndef _CTYPE_H
2 #define _CTYPE_H
4 /** @file
6 * Character types
7 */
9 #define isdigit(c) ((c) >= '0' && (c) <= '9')
10 #define islower(c) ((c) >= 'a' && (c) <= 'z')
11 #define isupper(c) ((c) >= 'A' && (c) <= 'Z')
13 static inline unsigned char tolower(unsigned char c)
15 if (isupper(c))
16 c -= 'A'-'a';
17 return c;
20 static inline unsigned char toupper(unsigned char c)
22 if (islower(c))
23 c -= 'a'-'A';
24 return c;
27 #endif /* _CTYPE_H */