abs.3

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3 代码 · 共 46 行

3
46
字号
.TH abs 3.SH Nameabs, labs \- integer absolute value.SH Syntax.nf.B #include <stdlib.h>.br.B #include <stdlib.h>.PP.B long labs(\fIi\fP).br.B long \fIi\fP;.PP.B int abs(\fIi\fP).br.B int \fIi\fP;.PP.B long labs(\fIi\fP).br.B long \fIi\fP;.fi.SH Description.NXR "abs subroutine (standard C)".NXR "labs subroutine (ANSI C)".NXR "absolute value function"The.PN absand.PN labsfunctions return the absolute value of their integer operand.  The labsfunction does the same for a long int..SH RestrictionsApplying the .PN absor.PN labsfunction to the most negative integer generates aresult which is the most negative integer.  That is, .EXabs(0x80000000).EE.PPreturns 0x80000000 as a result..SH See Alsofloor(3m) 

⌨️ 快捷键说明

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