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