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

📄 isalnum.c

📁 这是一个同样来自贝尔实验室的和UNIX有着渊源的操作系统, 其简洁的设计和实现易于我们学习和理解
💻 C
字号:
#include <ctype.h>#undef isalnum#undef isalpha#undef iscntrl#undef isdigit#undef isgraph#undef islower#undef isprint#undef ispunct#undef isspace#undef isupper#undef isxdigitint isalnum(int c){ return (_ctype+1)[c]&(_ISupper|_ISlower|_ISdigit); }int isalpha(int c){ return (_ctype+1)[c]&(_ISupper|_ISlower); }int iscntrl(int c){ return (_ctype+1)[c]&_IScntrl; }int isdigit(int c){ return (_ctype+1)[c]&_ISdigit; }int isgraph(int c){ return (_ctype+1)[c]&(_ISpunct|_ISupper|_ISlower|_ISdigit); }int islower(int c){ return (_ctype+1)[c]&_ISlower; }int isprint(int c){ return (_ctype+1)[c]&(_ISpunct|_ISupper|_ISlower|_ISdigit|_ISblank); }int ispunct(int c){ return (_ctype+1)[c]&_ISpunct; }int isspace(int c){ return (_ctype+1)[c]&_ISspace; }int isupper(int c){ return (_ctype+1)[c]&_ISupper; }int isxdigit(int c){ return (_ctype+1)[c]&_ISxdigit; }

⌨️ 快捷键说明

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