📄 isxdigit.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
*
* isxdigit.c Nucleus Common Library 1.1
*
* DESCRIPTION
*
* This file contains the implementation of NCL_isxdigit.
*
* DATA STRUCTURES
*
* None.
*
* FUNCTIONS
*
* NCL_isxdigit
*
* DEPENDENCIES
*
* ncl.h
* ctype.h
*
************************************************************************/
#define NU_NCL_SOURCE_FILE
#include "ncl\inc\ncl.h"
#include "ncl\inc\ctype.h"
#undef NCL_isxdigit
/*************************************************************************
*
* FUNCTION
*
* NCL_isxdigit
*
* DESCRIPTION
*
* Return nonzero for a hexadecimal digit.
*
* INPUTS
*
* c Character in question.
*
* OUTPUTS
*
* int Returns nonzero for hexadecimal digit, else 0.
*
*************************************************************************/
int NCL_isxdigit(register int c)
{
return NCL_isdigit(c) || (c >= 'A' && c <= 'F') || (c >= 'a' && c <= 'f');
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -