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