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

📄 toascii.c

📁 标准c库代码,可以应用于各个系统提供了大量的基本函数
💻 C
字号:
/*FUNCTION	<<toascii>>---force integers to ASCII rangeINDEX	toasciiANSI_SYNOPSIS	#include <ctype.h>	int toascii(int <[c]>);TRAD_SYNOPSIS	#include <ctype.h>	int toascii(<[c]>);	int (<[c]>);DESCRIPTION<<toascii>> is a macro which coerces integers to the ASCII range (0--127) by zeroing any higher-order bits.You can use a compiled subroutine instead of the macro definition byundefining this macro using `<<#undef toascii>>'.RETURNS<<toascii>> returns integers between 0 and 127.PORTABILITY<<toascii>> is not ANSI C.No supporting OS subroutines are required.*/#include <_ansi.h>#include <ctype.h>#undef toascii#undef _toasciiint_DEFUN(toascii,(c),int c){  return (c)&0177;}int_DEFUN(_toascii,(c),int c){  return (c)&0177;}

⌨️ 快捷键说明

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