abs.3
来自「Unix操作系统minix 2.0源码」· 3 代码 · 共 25 行
3
25 行
.\" @(#)abs.3 6.1 (Berkeley) 5/15/85.\".TH ABS 3 "May 15, 1985".AT 3.SH NAMEabs \- integer absolute value.SH SYNOPSIS.nf.ft B#include <stdlib.h>int abs(int \fIi\fP).ft R.fi.SH DESCRIPTION.B Absreturns the absolute value of its integer operand..SH SEE ALSO.BR floor (3)..SH BUGSApplying the \fIabs\fP function to the most negative integer generates aresult which is the most negative integer. That is, abs(0x80000000)returns 0x80000000 as a result on a machine with 32-bit ints. Using theresult in unsigned computations is sound however.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?