[contrib] Allow Network Protocol header to display in rom-o-matic
[gpxe.git] / src / include / ctype.h
blobed4d884697f7180346e817243e1725fb819b0d69
1 #ifndef _CTYPE_H
2 #define _CTYPE_H
4 /** @file
6 * Character types
7 */
9 FILE_LICENCE ( GPL2_OR_LATER );
11 #define isdigit(c) ((c) >= '0' && (c) <= '9')
12 #define islower(c) ((c) >= 'a' && (c) <= 'z')
13 #define isupper(c) ((c) >= 'A' && (c) <= 'Z')
15 static inline unsigned char tolower(unsigned char c)
17 if (isupper(c))
18 c -= 'A'-'a';
19 return c;
22 static inline unsigned char toupper(unsigned char c)
24 if (islower(c))
25 c -= 'a'-'A';
26 return c;
29 extern int isspace ( int c );
31 #endif /* _CTYPE_H */