⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 abs.c

📁 test file nucleus source
💻 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**       abs.c                                   Nucleus Common Library 1.1** DESCRIPTION**       This file contains the implementation of NCL_abs.** DATA STRUCTURES**       None.** FUNCTIONS**       NCL_abs** DEPENDENCIES**       ncl.h*       string.h*       nucleus.h*************************************************************************/#define NU_NCL_SOURCE_FILE#include "ncl\inc\ncl.h"#include "ncl\inc\stdlib.h"#include "plus\nucleus.h"                                /* MMU Support *//***************************************************************************   FUNCTION**       NCL_abs**   DESCRIPTION**       Return the absolute value of the integer operand**   INPUTS**       val                 Value to computer absolute value of**   OUTPUTS**       int                 Absolute value of val**************************************************************************/int NCL_abs(register int val){    if (val > 0)    {        return val;    }    else    {        return -val;    }}

⌨️ 快捷键说明

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