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

📄 ctype_.c

📁 操作系统SunOS 4.1.3版本的源码
💻 C
字号:
#if !defined(lint) && defined(SCCSIDS)static  char sccsid[] = "@(#)ctype_.c 1.1 92/07/30 SMI"; /* from UCB 4.2 83/07/08 */#endif#include	<ctype.h>#include	<stdlib.h>char	_ctype_[] = { 0,/*	 0	 1	 2	 3	 4	 5	 6	 7  *//* 0*/	_C,	_C,	_C,	_C,	_C,	_C,	_C,	_C,/* 10*/	_C,	_S|_C,	_S|_C,	_S|_C,	_S|_C,	_S|_C,	_C,	_C,/* 20*/	_C,	_C,	_C,	_C,	_C,	_C,	_C,	_C,/* 30*/	_C,	_C,	_C,	_C,	_C,	_C,	_C,	_C,/* 40*/	_S|_B,	_P,	_P,	_P,	_P,	_P,	_P,	_P,/* 50*/	_P,	_P,	_P,	_P,	_P,	_P,	_P,	_P,/* 60*/	_N|_X,	_N|_X,	_N|_X,	_N|_X,	_N|_X,	_N|_X,	_N|_X,	_N|_X,/* 70*/	_N|_X,	_N|_X,	_P,	_P,	_P,	_P,	_P,	_P,/*100*/	_P,	_U|_X,	_U|_X,	_U|_X,	_U|_X,	_U|_X,	_U|_X,	_U,/*110*/	_U,	_U,	_U,	_U,	_U,	_U,	_U,	_U,/*120*/	_U,	_U,	_U,	_U,	_U,	_U,	_U,	_U,/*130*/	_U,	_U,	_U,	_P,	_P,	_P,	_P,	_P,/*140*/	_P,	_L|_X,	_L|_X,	_L|_X,	_L|_X,	_L|_X,	_L|_X,	_L,/*150*/	_L,	_L,	_L,	_L,	_L,	_L,	_L,	_L,/*160*/	_L,	_L,	_L,	_L,	_L,	_L,	_L,	_L,/*170*/	_L,	_L,	_L,	_P,	_P,	_P,	_P,	_C,/*200*/	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0,	 0};unsigned int	_mb_cur_max;/* Now we also supply the functions in libc as well as the macros in * ctype.h */#undef	isalpha#undef	isupper#undef	islower#undef	isdigit#undef	isxdigit#undef	isspace#undef	ispunct#undef	isalnum#undef	isprint#undef	isgraph#undef	iscntrl#undef	isascii#undef	toasciiextern int mbtowc();int isalpha(c)	register int c;{	return((_ctype_+1)[c]&(_U|_L));}int isupper(c)register int c;{	return((_ctype_+1)[c]&_U);}int islower(c)	register int c;{	return((_ctype_+1)[c]&_L);}int isdigit(c)	register int c;{	return((_ctype_+1)[c]&_N);}int isxdigit(c)	register int c;{	return((_ctype_+1)[c]&_X);}int isspace(c)	register int c;{	return((_ctype_+1)[c]&_S);}int ispunct(c)	register int c;{	return((_ctype_+1)[c]&_P);}int isalnum(c)	register int c;{	return((_ctype_+1)[c]&(_U|_L|_N));}int isprint(c)	register int c;{	return((_ctype_+1)[c]&(_P|_U|_L|_N|_B));}int isgraph(c)	register int c;{	return((_ctype_+1)[c]&(_P|_U|_L|_N));}int iscntrl(c)	register int c;{	return((_ctype_+1)[c]&_C);}int isascii(c)	register int c;{	return((unsigned)(c)<=0177);}int toascii(c)	register int c;{	return((c)&0177);}

⌨️ 快捷键说明

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