HPGCC3 Documentation 3.0 R003
|
00001 //& *** (c) 2006-2011 The HPGCC3 Team *** 00002 //& Claudio Lapilli 00003 //& Ingo Blank 00004 //& 00005 //& This file is licensed under the terms and conditions of the 00006 //& HPGCC3 license that is included with the source distribution. 00007 //& *** (c) 2006-2011 The HPGCC3 Team *** 00008 00009 00014 #ifndef _CTYPE_H_ 00015 #define _CTYPE_H_ 00016 00017 // ctype 00018 00019 #define _islower(c) ('a' <= (c) && (c) <= 'z') 00020 #define _isupper(c) ('A' <= (c) && (c) <= 'Z') 00021 #define _isdigit(c) ('0' <= (c) && (c) <= '9') 00022 #define _isalpha(c) (_islower(c) || _isupper(c)) 00023 #define _toupper(c) (_islower((c)) ? ((c)-32) : (c)) 00024 #define _tolower(c) (_isupper((c)) ? ((c)+32) : (c)) 00025 00026 00027 00028 // wrappers for above macros for pointer security 00029 // iblank 2004-10-26 00030 00031 int islower(int c); 00032 int isupper(int c); 00033 int isdigit(int c); 00034 int isalpha(int c); 00035 int toupper(int c); 00036 int tolower(int c); 00037 int isalnum(int c); 00038 00039 00040 00041 #endif //_CTYPE_H_