iscntrl.c
来自「KPIT GNU Tools is a set of GNU developme」· C语言 代码 · 共 49 行
C
49 行
/*FUNCTION <<iscntrl>>---control character predicateINDEX iscntrlANSI_SYNOPSIS #include <ctype.h> int iscntrl(int <[c]>);TRAD_SYNOPSIS #include <ctype.h> int iscntrl(<[c]>);DESCRIPTION<<iscntrl>> is a macro which classifies ASCII integer values by tablelookup. It is a predicate returning non-zero for control characters, and 0 for other characters. It is defined only when <<isascii>>(<[c]>) istrue or <[c]> is EOF. You can use a compiled subroutine instead of the macro definition byundefining the macro using `<<#undef iscntrl>>'.RETURNS<<iscntrl>> returns non-zero if <[c]> is a delete character or ordinarycontrol character (<<0x7F>> or <<0x00>>--<<0x1F>>).PORTABILITY<<iscntrl>> is ANSI C.No supporting OS subroutines are required.*/#include <_ansi.h>#include <ctype.h>#undef iscntrlint_DEFUN(iscntrl,(c),int c){ return((_ctype_ + 1)[c] & _C);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?