isgraph.c

来自「Nucleus Common Library for Integrator 」· C语言 代码 · 共 69 行

C
69
字号
/*************************************************************************
*
*               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
*
*       isgraph.c                               Nucleus Common Library 1.1
*
* DESCRIPTION
*
*       This file contains the implementation of NCL_isgraph.
*
* DATA STRUCTURES
*
*       None.
*
* FUNCTIONS
*
*       NCL_isgraph
*
* DEPENDENCIES
*
*       ncl.h
*       ctype.h
*
************************************************************************/

#define NU_NCL_SOURCE_FILE

#include "ncl\inc\ncl.h"
#include "ncl\inc\ctype.h"

#undef NCL_isgraph

/*************************************************************************
*
*   FUNCTION
*
*       NCL_isgraph
*
*   DESCRIPTION
*
*       Return nonzero for printable char other than a space.
*
*   INPUTS
*
*       c                   Character in question.
*
*   OUTPUTS
*
*       int                 Returns nonzero for printable char other than
*                             a space, else 0.
*
*************************************************************************/

int NCL_isgraph(int c)  
{
    return c >= 0x21 && c <= 0x7E;
}

⌨️ 快捷键说明

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