imaxabs.gml
来自「开放源码的编译器open watcom 1.6.0版的源代码」· GML 代码 · 共 37 行
GML
37 行
.func imaxabs
#include <inttypes.h>
intmax_t imaxabs( intmax_t j );
.funcend
.*
.desc begin
The &func function returns the absolute value
of its maximum-size integer argument
.arg j.
.desc end
.return begin
The &func function returns the absolute value of its argument.
.return end
.*
.see begin
.seelist imaxabs labs llabs abs fabs
.see end
.*
.exmp begin
#include <stdio.h>
#include <inttypes.h>
void main( void )
{
intmax_t x, y;
.exmp break
x = -500000000000;
y = imaxabs( x );
printf( "imaxabs(%jd) = %jd\n", x, y );
}
.exmp output
imaxabs(-500000000000) = 500000000000
.exmp end
.*
.class ISO C99
.system
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?