📄 ctype.h
字号:
/**************************************************************************
* *
* PROJECT : TMON (Transparent monitor) *
* *
* MODULE : CTYPE.h *
* *
* AUTHOR : Michael Anburaj *
* URL : http://geocities.com/michaelanburaj/ *
* EMAIL: michaelanburaj@hotmail.com *
* *
* PROCESSOR : MIPS 4Kc (32 bit RISC) - ATLAS board *
* *
* Tool-chain : SDE & Cygnus *
* *
* DESCRIPTION : *
* This is a std header file. *
* *
**************************************************************************/
#define _UPC 0x1
#define _LWR 0x2
#define _DIG 0x4
#define _SPC 0x30
#define _PUN 0x10
#define _CTR 0x20
#define _HEX 0x40
#define _BLK 0x80
#define isalpha(c) ((char)((unsigned char)(c))&(_UPC|_LWR))
#define isupper(c) ((char)((unsigned char)(c))&_UPC)
#define islower(c) ((char)((unsigned char)(c))&_LWR)
#define isdigit(c) ((char)((unsigned char)(c))&_DIG)
#define isxdigit(c) ((char)((unsigned char)(c))&(_DIG|_HEX))
#define isspace(c) ((char)((unsigned char)(c))&~_SPC)
#define ispunct(c) ((char)((unsigned char)(c))&_PUN)
#define isalnum(c) ((char)((unsigned char)(c))&(_UPC|_LWR|_DIG))
#define isprint(c) ((char)((unsigned char)(c))&(_PUN|_UPC|_LWR|_DIG|_BLK))
#define isgraph(c) ((char)((unsigned char)(c))&(_PUN|_UPC|_LWR|_DIG))
#define iscntrl(c) ((char)((unsigned char)(c))&_CTL)
#define isascii(c) ((char)((unsigned)(c))<=0x7f)
/*
#define pan(c) ((char)((unsigned char)(c))&0x30)
*/
extern int toupper(int);
extern int tolower(int);
extern int pan(unsigned char c);
#define toascii(c) ((unsigned char)(c)&0x7f)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -