toupper.c

来自「操作系统SunOS 4.1.3版本的源码」· C语言 代码 · 共 21 行

C
21
字号
#if !defined(lint) && defined(SCCSIDS)static	char sccsid[] = "@(#)toupper.c 1.1 92/07/30 SMI"; /* from S5R2 1.2 */#endif/*LINTLIBRARY*//* * Internationalized toupper/tolower set (code-set independant) * If arg is lower-case, return upper-case, otherwise return arg. */#include <ctype.h>extern char     _ctype_ul[];inttoupper(c)register int c;{	if (islower(c))		return (_ctype_ul+1)[c];		return(c);}

⌨️ 快捷键说明

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