📄 tolower.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** tolower.c Nucleus Common Library 1.1** DESCRIPTION** This file contains the implementation of NCL_tolower.** DATA STRUCTURES** None.** FUNCTIONS** NCL_tolower** 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_tolower/*************************************************************************** FUNCTION** NCL_tolower** DESCRIPTION** Converts a character to lowercase if it is uppercase.** INPUTS** c The character to convert** OUTPUTS** int The converted character**************************************************************************/int NCL_tolower(register int c){ c = (c >= 'A' && c <= 'Z') ? c-'A'+'a' : c; return c;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -