ctype.h
Go to the documentation of this file.00001 #ifndef _CTYPE_H
00002 #define _CTYPE_H
00003
00004
00005
00006
00007
00008
00009 FILE_LICENCE ( GPL2_OR_LATER );
00010
00011 #define isdigit(c) ((c) >= '0' && (c) <= '9')
00012 #define islower(c) ((c) >= 'a' && (c) <= 'z')
00013 #define isupper(c) ((c) >= 'A' && (c) <= 'Z')
00014
00015 static inline unsigned char tolower(unsigned char c)
00016 {
00017 if (isupper(c))
00018 c -= 'A'-'a';
00019 return c;
00020 }
00021
00022 static inline unsigned char toupper(unsigned char c)
00023 {
00024 if (islower(c))
00025 c -= 'a'-'A';
00026 return c;
00027 }
00028
00029 extern int isspace ( int c );
00030
00031 #endif