ctype.h

来自「TI公司的CCS一些常用的函数库」· C头文件 代码 · 共 28 行

H
28
字号
////////////////////////////////////////////////////////////////////////////
////        (C) Copyright 1996,2003 Custom Computer Services            ////
//// This source code may only be used by licensed users of the CCS C   ////
//// compiler.  This source code may only be distributed to other       ////
//// licensed users of the CCS C compiler.  No other use, reproduction  ////
//// or distribution is permitted without written permission.           ////
//// Derivative programs created using this software in object code     ////
//// form are not restricted in any way.                                ////
////////////////////////////////////////////////////////////////////////////

#ifndef _CTYPE
#define _CTYPE

#define islower(x)  isamoung(x,"abcdefghijklmnopqrstuvwxyz")
#define isupper(x)  isamoung(x,"ABCDEFGHIJKLMNOPQRSTUVWXYZ")
#define isalnum(x)  isamoung(x,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz")
#define isalpha(x)  isamoung(x,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz")
#define isdigit(x)  isamoung(x,"0123456789")
#define isspace(x)  (x==' ')
#define isxdigit(x) isamoung(x,"0123456789ABCDEFabcdef")
#define iscntrl(x)  (x<' ')
#define isprint(x)  (x>=' ')
#define isgraph(x)  (x>' ')
#define ispunct(x)  ((x>' ')&&!isalnum(x))

#endif

⌨️ 快捷键说明

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