📄 toupper.c
字号:
/*************************************************************************
*
* Copyright Mentor Graphics Corporation 2002
* All Rights Reserved.
*
* THIS WORK CONTAINS TRADE SECRET AND PROPRIETARY INFORMATION WHICH IS
* THE PROPERTY OF MENTOR GRAPHICS CORPORATION OR ITS LICENSORS AND IS
* SUBJECT TO LICENSE TERMS.
*
*************************************************************************/
/*************************************************************************
* FILE NAME VERSION
*
* toupper.c Nucleus Common Library 1.1
*
* DESCRIPTION
*
* This file contains the implementation of NCL_toupper.
*
* DATA STRUCTURES
*
* None.
*
* FUNCTIONS
*
* NCL_toupper
*
* DEPENDENCIES
*
* ncl.h.h
* ctype.h
* nucleus.h
*
************************************************************************/
#define NU_NCL_SOURCE_FILE
#include "ncl\inc\ncl.h"
#include "ncl\inc\ctype.h"
#include "plus\nucleus.h" /* MMU Support */
#undef NCL_toupper
/*************************************************************************
*
* FUNCTION
*
* NCL_toupper
*
* DESCRIPTION
*
* Converts a character to uppercase if it is lowercase.
*
* INPUTS
*
* c The character to convert
*
* OUTPUTS
*
* int The converted character
*
*************************************************************************/
int NCL_toupper(register int c)
{
c = (c >= 'a' && c <= 'z') ? c-'a'+'A' : c;
return c;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -