⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ctype.h,v

📁 linux-0.10 对于想了解linux内核,而又不想花太多精力的人,最好就是这种低版本,而具有核心价值的程序
💻 H,V
字号:
head     1.2;branch   ;access   ;symbols  ;locks    ; strict;comment  @ * @;1.2date     91.11.15.19.30.40;  author tytso;  state Exp;branches ;next     1.1;1.1date     91.11.15.16.16.12;  author tytso;  state Exp;branches ;next     ;desc@@1.2log@Fixed bug in tolower().  Plus sign should have been a minus sign.@text@#ifndef _CTYPE_H#define _CTYPE_H#define _U	0x01	/* upper */#define _L	0x02	/* lower */#define _D	0x04	/* digit */#define _C	0x08	/* cntrl */#define _P	0x10	/* punct */#define _S	0x20	/* white space (space/lf/tab) */#define _X	0x40	/* hex digit */#define _SP	0x80	/* hard space (0x20) */extern unsigned char _ctype[];extern char _ctmp;#define isalnum(c) ((_ctype+1)[c]&(_U|_L|_D))#define isalpha(c) ((_ctype+1)[c]&(_U|_L))#define iscntrl(c) ((_ctype+1)[c]&(_C))#define isdigit(c) ((_ctype+1)[c]&(_D))#define isgraph(c) ((_ctype+1)[c]&(_P|_U|_L|_D))#define islower(c) ((_ctype+1)[c]&(_L))#define isprint(c) ((_ctype+1)[c]&(_P|_U|_L|_D|_SP))#define ispunct(c) ((_ctype+1)[c]&(_P))#define isspace(c) ((_ctype+1)[c]&(_S))#define isupper(c) ((_ctype+1)[c]&(_U))#define isxdigit(c) ((_ctype+1)[c]&(_D|_X))#define isascii(c) (((unsigned) c)<=0x7f)#define toascii(c) (((unsigned) c)&0x7f)#define tolower(c) (_ctmp=c,isupper(_ctmp)?_ctmp+('a'-'A'):_ctmp)#define toupper(c) (_ctmp=c,islower(_ctmp)?_ctmp+('A'-'a'):_ctmp)#endif@1.1log@Initial revision@text@d31 1a31 1#define tolower(c) (_ctmp=c,isupper(_ctmp)?_ctmp+('a'+'A'):_ctmp)@

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -