abs.3

来自「Unix操作系统minix 2.0源码」· 3 代码 · 共 60 行

3
60
字号


ABS(3)                    Minix Programmer's Manual                     ABS(3)


NAME
     abs - integer absolute value

SYNOPSIS
     #include <stdlib.h>

     int abs(int i)

DESCRIPTION
     Abs returns the absolute value of its integer operand.

SEE ALSO
     floor(3).

BUGS
     Applying the abs function to the most negative integer generates a result
     which  is  the  most  negative integer.  That is, abs(0x80000000) returns
     0x80000000 as a result on a machine with 32-bit ints.  Using  the  result
     in unsigned computations is sound however.

































                                May 15, 1985                                 1

⌨️ 快捷键说明

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