www.pudn.com > iccavr_lib.rar > _ctype.h, change:2002-06-23,size:359b


#ifndef ___CTYPE_H 
#define ___CTYPE_H 
 
#define BIT(i)	(1 << (i)) 
 
#define _U	BIT(0) 
#define _L	BIT(1) 
#define _D	BIT(2) 
#define _X	BIT(3) 
#define _S	BIT(4) 
#define _C	BIT(5) 
#define _P	BIT(6) 
#define _B	BIT(7) 
 
extern const unsigned char _ctype[1+256]; 
 
#define FUNC(name, mask)	\ 
	int name(int c) { return _ctype[c+1] & (mask); } 
 
#endif