#include <ctype.h>
int isascii(int c);
描述
checks whether c is a 7-bit unsigned char value that fits into the ASCII character set.
检查参数c是否为ASCII 码字符,也就是判断c 的范围是否在0 到127 之间。
返回值
The values returned are nonzero if the character c falls into the tested class, and zero if not.
如果字符c属于测试类,则返回的值非零,否则返回零。
附加说明:此为宏定义,非真正函数。
# define isascii(c) __isascii (c)
#define __isascii(c) (((c) & ~0x7f) == 0) /* If C is a 7 bit value. */